A high performance FlatList providing customised pull-to-refresh | auto-pagination & infinite-scrolling | gridview layout | swipeable-row. The truly ultimate version that I have done the most tricky part for you, just simply follow the instructions shown below to put it in your app.
This is an enhanced FlatList with all excellent extra features, comparing to the official version.
This module supports both of iOS and Android platforms.
All codes are written in ES6 syntax.
Quick installation
- If on react-native < 0.43:
yarn add react-native-ultimate-listview@3.0.2
- If on react-native >= 0.43
yarn add react-native-ultimate-listview@3.1.4
iOS | Android | |
---|---|---|
FlatList |
I have found some artical to explain why you need to use FlatList, instead of the legacy ListView. There are some obvious reasons:
- FlatList just like the UITableView or RecylerView, which can dramatically reduce memory usage. It also provides more soomth animation when you have an extremely long list.
- FlatList supports scrollToIndex function, which is pretty convenient when you want to scroll to an item with index, instead of depending the y-offset.
- FlatList recommend developer to use PureComponent to reduce unnessary re-rendering, this can really boost the performance and make your app run faster.
- Overview
- FlatList Migration
- Usage
- ListView API
- RefreshView API
- Pagination API
- Methods API
- Swipable Tip
- ChangeLog
- See the Release Note
@gameboyVito - gameboyvito@gmail.com
MIT