onViewableItemsChanged - getting an ID of an item #577
-
I use flashlist to render Items in fullScreen, and it render 2 items each time when I scroll, is there any possible way to render 1 item each time? This is because when I try to use the The reason I want to do this, is based on the The log on first load:
Log on subsequent scrolls (ids just dont match?? this is the main problem)
The rowRenderer (with the logging lines)
FlashList
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I suppose the number of rendered items is related to how many items are loaded during the first render?
In the documentation we already call out that There are two possible solutions:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply @fortmarek . It ended up being something quite simple -- we extracted the RowRenderer to it's own component and passed the props as attributes, and it's running very smoothly now. No more flashing. Thanks for the assistance. |
Beta Was this translation helpful? Give feedback.
I suppose the number of rendered items is related to how many items are loaded during the first render?
In the documentation we already call out that
if you are tracking the time a view becomes (non-)visible, use the timestamp property. We make no guarantees that in the future viewability callbacks will be invoked as soon as they happe…