-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
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
[Feature Request] Start Horizontal Scrollview at index #17
Comments
To start a horizontal Animated.ScrollView at a specific index or position, you can use the scrollTo method and pass in the x and y coordinates of the desired position. For example, to start the scrollview at index 2, you can use the following code:
|
Okay i used the given props by myself :-) Here is a small tutorial:
|
Would be nice to be added to the documentation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since my issue #14 was closed but i believe my question was missunderstood, i reopened a new issue.
My wish is to let the timetable start a specific day, so the horizontal position (not the vertical).
For example it would be nice to let the user start on the current day. When the items are from monday till sunday and currently it is friday, i dont want to have the first item to be friday. If the first item would be friday, the user cant scroll left to monday.
Since in #14 you mentioned, that there is no vertical scrollview my wish is pointing at the horizontal "scrollview".
Currently always need to scroll to current day/item

With prop

startIndex=2
it would start at the second item. I believe the horizontal scrollview could do this.The text was updated successfully, but these errors were encountered: