Skip to content

Conversation

@Garamani
Copy link
Contributor

@Garamani Garamani commented Apr 4, 2021

It seems that ScrollView has a layout animation, and without delaying the "scrollTo" It won't scroll to the end of the list.
Using the componentDidMount approach, the delay should be at least 500 ms but delaying "scrollTo" in "onLayoutScrollView" only 1 ms is enough to scroll to the end of a large List (The delay was raised to 100ms to be sure that ScrollView is ready for scrollTo ).

Replacing the ScrollView with FlatList might be a better choice to improve the performance.

It seems that ScrollView has a layout animation, and without delaying the "scrollTo" It won't scroll to the end of the list.
Using the componentDidMount approach, the delay should be at least 500 ms but delaying "scrollTo" in "onLayoutScrollView" only 1 ms is enough to scroll to the end of a large List (The delay was raised to 100ms to be sure that ScrollView is ready for scrollTo ).

Replacing the ScrollView with FlatList might be a better choice to improve the performance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant