v0.1.0
FlatList by react-native only allows infinite scroll in one direction (using onEndReached
). This package adds capability on top of FlatList to allow infinite scroll from both directions, and also maintains smooth scroll UX.
Features
- Accepts prop
onStartReached
&onEndReached
, which you can use to load more results. - Calls to onEndReached and onStartReached have been optimized.
- Inline loading Indicators, which can be customized as well.
- Uses flat-list-mvcp to maintain scroll position or smooth scroll UX.
Note
onEndReached
andonStartReached
only get called once, per content length.onEndReached
andonStartReached
must return a promise.maintainVisibleContentPosition
is fixed, and can't be modified through props.- doesn't accept
ListFooterComponent
via prop, since it is occupied byFooterLoadingIndicator