Optimization for complex and slow React Native FlatLists
npm install react-native-optimized-flatlist

__Optimization for FlatLists. This is a fix over the FlatList that removed every item that is not inside the viewport. This will give a more stable and faster FlatList as performance dont drop! :)__
Please also read more about the issue here:
https://github.com/facebook/react-native/issues/13413
npm i -S react-native-optimized-flatlist
`
or
`
yarn add react-native-optimized-flatlist
`
Usage
Just replace FlatList with OptimizedFlatList .. thats all! :)Replace this:
`js
render() {
return (
data={[{name: 'fred', name: 'freddy'}]}
renderItem={ ({item}) => {item.name} }
/>
...
`
With this:
`js
...
import {OptimizedFlatList} from 'react-native-optimized-flatlist'...
render() {
return (
data={[{name: 'fred', name: 'freddy'}]}
renderItem={ ({item}) => {item.name} }
/>
...
``