Skip to content

Releases: GetStream/react-native-bidirectional-infinite-scroll

v0.3.3

04 Apr 11:53
Compare
Choose a tag to compare
  • Upgrade peerDependency of flat-list-mvcp to v0.10.0, which fixes the issue around Concurrenthandler Native exception
  • Fixed typescript exports

v0.3.2

14 Mar 08:03
Compare
Choose a tag to compare

Fix

Fixed the call to setOnEndReached

v0.3.1

03 Mar 15:18
Compare
Choose a tag to compare

Upgrading flat-list-mvcp dependency, which fixes Exception in native call from JS error.

v0.3.0

28 Feb 16:50
Compare
Choose a tag to compare

Added support for ref setting, by wrapping the component with React.forwardRef f288443

v0.2.0

25 Feb 01:51
Compare
Choose a tag to compare
  • 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

22 Feb 20:16
Compare
Choose a tag to compare

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