Created
February 25, 2021 02:08
-
-
Save vishalnarkhede/f33ec08c82adc1f3c7398008cb23ab96 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { FlatList } from "react-native-bidirectional-infinite-scroll"; | |
<FlatList | |
data={numbers} | |
renderItem={ListItem} | |
keyExtractor={(item) => item.toString()} | |
onStartReached={onStartReached} // required, should return a promise | |
onEndReached={onEndReached} // required, should return a promise | |
showDefaultLoadingIndicators={true} // optional | |
onStartReachedThreshold={10} // optional | |
onEndReachedThreshold={10} // optional | |
activityIndicatorColor={'black'} // optional | |
HeaderLoadingIndicator={() => { /** Your loading indicator */ }} // optional | |
FooterLoadingIndicator={() => { /** Your loading indicator */ }} // optional | |
// You can use any other prop on react-native's FlatList | |
/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment