We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The problem initialScrollIndex prop on FlatList stopped working from v0.16
initialScrollIndex
FlatList
How to reproduce Simplified test case: https://codesandbox.io/s/nifty-hopper-44ntf
Steps to reproduce:
Expected behavior FlatList renders items starting from the correct index provided in initialScrollIndex prop and the scrollbar shows correct position.
Environment (include versions). Did this work in previous versions?
This worked in 0.15.x versions and below Test case showcasing correct behaviour with rn-web v0.15.7: https://codesandbox.io/s/elegant-leaf-8yt3c
The text was updated successfully, but these errors were encountered:
Any update on this please? @necolas
Sorry, something went wrong.
not working also on 0.17 as a workaround it is possible to pass this method to the "ref" prop where selectedFeedIndex is the initial item
const getFlatListRef = useCallback( flatList => { if (flatList) { flatList.scrollToIndex({ animated: false, index: selectedFeedIndex }) } }, [selectedFeedIndex], )
edec979
[change] Update FlatList, VirtualizedList, and SectionList vendor mod…
20edba5
…ules Close necolas#2241 Fix necolas#2030 Fix necolas#1608
No branches or pull requests
The problem
initialScrollIndex
prop onFlatList
stopped working from v0.16How to reproduce
Simplified test case: https://codesandbox.io/s/nifty-hopper-44ntf
Steps to reproduce:
initialScrollIndex
propExpected behavior
FlatList renders items starting from the correct index provided in
initialScrollIndex
prop and the scrollbar shows correct position.Environment (include versions). Did this work in previous versions?
This worked in 0.15.x versions and below
Test case showcasing correct behaviour with rn-web v0.15.7: https://codesandbox.io/s/elegant-leaf-8yt3c
The text was updated successfully, but these errors were encountered: