Skip to content
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.

can we use it inside the flatlist? #41

Open
eleenak opened this issue Apr 4, 2018 · 2 comments
Open

can we use it inside the flatlist? #41

eleenak opened this issue Apr 4, 2018 · 2 comments

Comments

@eleenak
Copy link

eleenak commented Apr 4, 2018

can we use it inside flatlist?

@DavitVosk
Copy link

Any updates?

@NickToony
Copy link

NickToony commented Jun 21, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants