FlatList, VirtualizedList, SectionList for React-Native < 0.43 --
npm install react-native-listFlatList, VirtualizedList, SectionList for React-Native < 0.43
--
This repository mimics the latest changes in React Native 0.43.
This package contains copied and adapted implementation of 0.43 list features to < 0.43 realms.
- Install package using your favorite manager:
``sh`
yarn add react-native-list
`
or
sh`
npm add react-native --save
- Add react-native-list to your providesModuleNodeModules:
- If you don't have rn-cli.config.js, create rn-cli.config.js in the root directory of your project:
`js`
module.exports = {
getProvidesModuleNodeModules() {
return [
'react-native',
'react-native-windows',
'react-native-list',
];
},
};
- If you already have rn-cli.config.js, add react-native-list to your getProvidesModuleNodeModules function or copy it from the snippet above.
`js
import { FlatList, VirtualizedList, SectionList } from 'react-native-list';
// then use it like a regular react-native@0.43 components
``
For more information, see Better List Views in React Native.