javascript - Could you please tell me whether the lazy rendering of FlatList in React-Native is based on the item or the smallest component?
滿天的星座
滿天的星座 2017-05-31 10:37:53
0
1
737

FlatList renders child elements lazily and only starts rendering when they are about to appear on the screen.
So is it rendered in units of items or in units of smallest components?
Suppose a list has 3 items, one Item occupies 3 screens, and each item contains 10 components
The first 3 items of the first item are on the first screen, then only the first rendering is done Should the first 3 (or 4, 5) components still render the first item?

滿天的星座
滿天的星座

reply all(1)
曾经蜡笔没有小新

All of them. FlatList only knows that item is not on the screen, it is not worth the components inside item.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template