jsoendermann / rn-section-list-get-item-layout

:black_square_button: Easy getItemLayout props for react-native SectionLists.
https://medium.com/@jsoendermann/sectionlist-and-getitemlayout-2293b0b916fb
Other
221 stars 32 forks source link

getItemHeight is called excessively #8

Closed amsul closed 6 years ago

amsul commented 6 years ago

Hi @jsoendermann! Thanks for building this helper.

I'm curious why getItemHeight is called so often. If I put a console.count, it clearly shows that all items in the list are measured multiple times whenever a new item is appended.

Is this just the way VirtualizedLists work in React Native?

jsoendermann commented 6 years ago

Yes, I believe that's a VirtualizedList issue