Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header is not collapsing when using Tabs.FlatList and onRefresh #401

Open
peyman-hakemi opened this issue May 6, 2024 · 1 comment
Open
Labels
question Further information is requested

Comments

@peyman-hakemi
Copy link

peyman-hakemi commented May 6, 2024

when I use refreshing={refreshing} and onRefresh={onRefresh} the header is not collapsing, but when I comment them everything works OK.

  <Tabs.FlatList
      data={!userId ? userGoals : goals}
      keyExtractor={keyExtractor}
      ListHeaderComponent={renderHeader}
      contentContainerStyle={styles.contentContainerStyle}
      onRefresh={onRefresh} <--------------------------------------- this
      onEndReached={onEndReached}
      refreshing={refreshing} <------------------------------------- and this
      renderItem={renderGoalCard}
      extraData={goals}
      nestedScrollEnabled
      ListEmptyComponent={ListEmptyComponent}
    />

what should I do? this happened out of no where, because my project was working perfectly before, I tried updating to the latest version but no luck!

"react-native": "^0.73.2",
"react-native-collapsible-tab-view": "7.0.1",

@peyman-hakemi peyman-hakemi added the question Further information is requested label May 6, 2024
@peyman-hakemi peyman-hakemi changed the title Header si not collapsed when using Tabs.FlatList and onRefresh Header is not collapsing when using Tabs.FlatList and onRefresh May 6, 2024
@alireza-k74
Copy link

alireza-k74 commented May 8, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants