react-native-big-list
This is a high performance list view for React Native with support for complex layouts using a similar FlatList usage to make easy the replacement. This list implementation for big list rendering on React Native works with a recycler focused on performance and memory usage and so it permits processing thousands items on the list.
Try it on the published demo web app: https://marcocesarato.github.io/react-native-big-list/
Why another list library?
React Native's FlatList is great but when it comes to big lists it has some flaws because of its item caching. Exists some alternatives like react-native-largelist and recyclerlistview but both have some issues.
The react-native-largelist isn't compatible with web and Expo, has native code that sometimes need to be readjusted and maintained, have a weird list item recycles (because it never has blank items), need data restructure and have some issues when trying to process a lot of data (eg: 100,000 items) because it would freeze the CPU.
The recyclerlistview is performant but suffers from an empty frame on mount, weird scroll positions when trying to scroll to an element on mount, and the implementation of sticky headers conflicts with Animated.
? Install
Install the library from npm or yarn just running one of the following command lines:
npm | yarn |
---|---|
npm install react-native-big-list --save |
yarn add react-native-big-list |
? Usage
Standard List (array of items)
Section List (array with inside arrays of items)
This list will auto stick the section rendered on the top of the list
For more examples check the example
directory the list
directory
? Screenshots
BigList vs FlatList | Section List |
---|---|
![]() |
![]() |
⚡️ Example
Expo
Clone or download repo and after:
Open Expo Client on your device. Use it to scan the QR code printed by expo start
. You may have to wait a minute while your project bundles and loads for the first time.