Skip to content

v0.1.0

Compare
Choose a tag to compare
@vishalnarkhede vishalnarkhede released this 22 Feb 20:16
· 26 commits to main since this release

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 and onStartReached only get called once, per content length.
  • onEndReached and onStartReached must return a promise.
  • maintainVisibleContentPosition is fixed, and can't be modified through props.
  • doesn't accept ListFooterComponent via prop, since it is occupied by FooterLoadingIndicator