GetStream / react-native-bidirectional-infinite-scroll

📜 React Native - Bidirectional Infinite Smooth Scroll
https://getstream.github.io/react-native-bidirectional-infinite-scroll/
MIT License
236 stars 27 forks source link

How to make the bottom activity loader to be evident #42

Open chaitanya71998 opened 1 year ago

chaitanya71998 commented 1 year ago

Hi greetings. I am trying to make the activity loader to be clearly visible when user scroll down to list. but to see activity indicator i need to swipe twice. For the first time i am able to scroll to the last element and cant see the activity indicator. the again if i swipe i was able to see the activity indicator.

my code implementation


const onEndReached = async() => {
return fetch()
}
 <View style={{ backgroundColor: 'white', flex: 1 }}>
      <FlatList
        data={creatorStore.bytesGridViewList}
        renderItem={renderItem}
        onStartReached={handleOnStartReached}
        onEndReached={handleOnEndReached}
        numColumns={3}
      />
    </View>

can anyone help me to sort this out