[Android][SectionList/FlatList] scrollTo not working because offset is outside rendered "canvas" #16676
Labels
Ran Commands
One of our bots successfully processed a command.
Stale
There has been a lack of activity on this issue and it may be closed soon.
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Then, specify:
Steps to Reproduce
In general, I am trying to preserve scroll position when a user navigates away from a ListView and then back again.
Expected Behavior
On Android it should scroll until the desired position, just like on iOS.
Actual Behavior
-> On iOS it is working, on Android it will only scroll until the 10th item, because only 10 items are rendered initally
Workaround: Setting initialNumToRender to 1000 will work, but this might crash on low end devices.
Reproducible Demo
Please check out this CRNA sample to reproduce the bug:
https://github.com/peterjuras/rn-list-scrollTo-bug
The text was updated successfully, but these errors were encountered: