Description
Implemented getItemLayout for a large list with dynamic heights in order to scroll outside of the render window with scrollToIndex, but the scrolling starts jumping when scrolling past the midpoint of a large list.
Likely related if the issue is with VirtualizedList: #31163
Seems like a 🐛 as the small amount of docs that exist for getItemLayout suggest that this is a valid use case.
React Native version:
Steps To Reproduce
- Create a
FlatList with getItemLayout that has dynamic heights & a large amount of rows
- Scroll to the bottom part of the list until you see the scroll position unexpectedly jump back to the top part of the list
Expected Results
Scrolling the list past the 300th row in the Snack on iOS device does not jump back to 150th row & there's no flickering.
Snack:
https://snack.expo.io/HQaYpJjAn (100% reproducable on iOS device)
Description
Implemented
getItemLayoutfor a large list with dynamic heights in order to scroll outside of the render window withscrollToIndex, but the scrolling starts jumping when scrolling past the midpoint of a large list.Likely related if the issue is with
VirtualizedList: #31163Seems like a 🐛 as the small amount of docs that exist for
getItemLayoutsuggest that this is a valid use case.React Native version:
Steps To Reproduce
FlatListwithgetItemLayoutthat has dynamic heights & a large amount of rowsExpected Results
Scrolling the list past the 300th row in the Snack on iOS device does not jump back to 150th row & there's no flickering.
Snack:
https://snack.expo.io/HQaYpJjAn (100% reproducable on iOS device)