react-native-collapsible-tab-view icon indicating copy to clipboard operation
react-native-collapsible-tab-view copied to clipboard

Header is not collapsing when using Tabs.FlatList and onRefresh

Open peyman-hakemi opened this issue 1 year ago • 1 comments

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 avatar May 06 '24 09:05 peyman-hakemi

@peyman-hakemi use this https://github.com/software-mansion/react-native-reanimated/issues/5941#issuecomment-2090595770 its worked for me

https://github.com/software-mansion/react-native-reanimated/issues/5941

alireza-k74 avatar May 08 '24 09:05 alireza-k74