Releases: GetStream/react-native-bidirectional-infinite-scroll
Releases · GetStream/react-native-bidirectional-infinite-scroll
v0.3.3
v0.3.2
v0.3.1
Upgrading flat-list-mvcp
dependency, which fixes Exception in native call from JS
error.
v0.3.0
v0.2.0
- Added support for two new props
/**
* Enable autoScrollToTop.
* In chat type applications, you want to auto scroll to bottom, when new message comes it.
*/
enableAutoscrollToTop?: boolean;
/**
* If `enableAutoscrollToTop` is true, the scroll threshold below which auto scrolling should occur.
*/
autoscrollToTopThreshold?: number;
- Added docs for all the props
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