Scrolling to index in lists uses wrong offset when content sizes has changed #2321
Labels
bug: react-native
Bug associated with upstream React Native vendor code
project:react-native-web
Issue associated with react-native-web
The problem
Scrolling to index positions in lists (FlatList, SectionList, VirtualizedList) uses the wrong offset if the sizes of items before the wanted index have changed size.
How to reproduce
Simplified test case: https://codesandbox.io/s/practical-khorana-gfcu1z?file=/src/App.js
Steps to reproduce:
Click the 3 buttons at the top of the example in order and observe the behaviour of the FlatList.
Expected behavior
ScrollToIndex (and related functions) should scroll to the correct offset even when content sizes dynamically change.
Environment (include versions). Did this work in previous versions?
The text was updated successfully, but these errors were encountered: