@death14stroke/react-native-paged-list
v1.0.7
Published
React Native component for showing list with infinite data using pagination on scroll
Downloads
75
Maintainers
Readme
react-native-paged-list
React Native component to load paged data in list by scrolling infinitely.
Installation
npm
npm install @death14stroke/react-native-paged-list
yarn
yarn add @death14stroke/react-native-paged-list
Usage
import { PagedList } from "@death14stroke/react-native-paged-list";
...
<PagedList
firstPage={0}
loadData={async page => {
const hasMoreData = getMoreData(page);
return hasMoreData;
}}
data={data}
renderItem={renderItem}
keyExtractor={keyExtractor}
/>
...
}
Demo
License
MIT