react-native-infinite-scrolling
A react native package developed to implement infinite scrolling in any react-native app.
Getting Started
Install via npm
npm i react-native-infinite-scrolling
Usage
Import the InfiniteScroll component from react-native-infinite-scrolling:
import InfiniteScroll from 'react-native-infinite-scrolling'
This component accepts 3 parameters / props:
- data: It contains data in form of an array which will be mapped.
- renderData: It accepts a function which returns the mapped data. It accepts a single parameter which indicates a single element of the data array.
- loadMore: It also accepts a function which will load more data once the bottom of the page is reached while scrolling.
Usage Example:
import InfiniteScroll from 'react-native-infinite-scrolling' const TestingApplication = => return
Build with:
- React
- react-native
- Hooks