react-native-lazyload icon indicating copy to clipboard operation
react-native-lazyload copied to clipboard

can we use it inside the flatlist?

Open eleenak opened this issue 6 years ago • 2 comments

can we use it inside flatlist?

eleenak avatar Apr 04 '18 11:04 eleenak

Any updates?

DavitVosk avatar May 21 '18 13:05 DavitVosk

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.

NickToony avatar Jun 21 '18 06:06 NickToony