FlatList abstraction which uses react-window on the web to create better list performance
npm install react-native-ridge-listsh
yarn add react-native-ridge-list
`
or
`sh
npm install react-native-ridge-list
`
Usage
`js
import RidgeList from "react-native-ridge-list";const ITEM_HEIGHT = 65
function getDefaultItemLayout(
data,
index,
) {
return {
length: ITEM_HEIGHT,
offset: ITEM_HEIGHT * index,
index,
};
}
// ...
data={DATA}
renderItem={renderItem}
keyExtractor={item => item.id}
getItemLayout={getDefaultItemLayout}
/>
``See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT