RN-Infinite-Scroll is react native library to implement Infinite Scrolling listview in React Native.
- React Native
- Expo
$ npm i rn-infinite-scroll --saveimport InfiniteListView from 'rn-infinite-scroll';
<InfiniteListView
data ={this.state.items}
renderRow={this.renderRow}
canLoad={this.canLoad()}
isLoading={this.state.isLoading}
onLoad={this.onLoad}
/>
- items :- Array of objects
- renderRow :- JSX for each row
- canLoad :- true / false, (to call onLoad)
- isLoading :- If last onLoad is still running
- onLoad :- Method to load data
MIT