react-native-lazyload
react-native-lazyload copied to clipboard
can we use it inside the flatlist?
can we use it inside flatlist?
Any updates?
If it helps anyone, the documentation here is relevant: https://facebook.github.io/react-native/docs/flatlist.html
In order to constrain memory and enable smooth scrolling, content is rendered asynchronously offscreen. This means it's possible to scroll faster than the fill rate and momentarily see blank content. This is a tradeoff that can be adjusted to suit the needs of each application, and we are working on improving it behind the scenes.
So FlatList is already partially performing most of the functionality you require. In particular, try using the removeClippedSubviews
prop - this may solve some of your performance issues!
Tweaking the viewabilityConfig
prop may also help.