react-native-seals-native-module
v1.0.0
Published
Fast performing recycler view for react native apps
Downloads
2
Maintainers
Readme
react-native-seals-native-module
What is this?
A recycler view with great performance.
Data format -> List of objects
object 👇
{
_id: string,
rating: number,
coverImage: string,
genre: string
}
Getting started
$ npm install react-native-seals-native-module --save
Mostly automatic installation
$ react-native link react-native-seals-native-module
Usage
import SealsNativeModule from 'react-native-seals-native-module';
// TODO: What to do with the module?
...
<View style={{width: 500}}>
<SealsNativeModule
style={{height: 260, marginRight: 150}}
data={data}
onClick={(id) => handleCardClick(id.nativeEvent.id)}
/>
</View>
where handleCardClick ->
function handleMovieCardClick(id: String) {
// Do something with clicked card id....
}