[Android] ScrollView is missing initial scroll position for Android
See original GitHub issueScrollView
has a contentOffset
prop for iOS, which sets the initial scroll offset.
But it lacks on Android, so you can not set the initial scroll position.
For anyone who can make this, these are the attributes in Android’s native ScrollView.
android:scrollX The initial horizontal scroll offset, in pixels.
android:scrollY The initial vertical scroll offset, in pixels.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:63
- Comments:82 (27 by maintainers)
Top Results From Across the Web
How to set the starting position of a ScrollView? - Stack Overflow
The problem is that the ScrollView doesn't know its size before it been laid out. A solution is to ...
Read more >[Android] ScrollView is missing initial scroll position for Android
[Android] ScrollView is missing initial scroll position for Android. mkonicek. Moved from https://github.com/facebook/react-native/issues/6849.
Read more >ScrollView - Android Developers
Position the scroll bar at the default position as determined by the system. int, SCROLLBAR_POSITION_LEFT. Position the scroll bar along the left edge....
Read more >ScrollView - React Native
When true, the scroll view stops on the next index (in relation to scroll position at release) regardless of how fast the gesture...
Read more >How To Set The Starting Position Of A Scrollview - ADocLib
Carousel states are lost upon recycling and scrolling away :( Now override the onViewRecycled to store the position of the first visible item...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
When I try to call
scrollTo
fromcomponentDidMount
method it does not scroll. I have to use workaround withsetTimeout
to make it work:This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.