You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scrolls to a given x, y offset, either immediately or with a smooth animation.
574
+
Scrolls to a given x, y offset, either immediately or with a smooth animation. For Android, you may specify a "duration" instead of using "animated", which simply resolves to a default duration of 250 milliseconds. Using `{animated: true}` for Android is the same as specifing `{duration: 250}`.
Note: The weird function signature is due to the fact that, for historical reasons, the function also accepts separate arguments as an alternative to the options object. This is deprecated due to ambiguity (y before x), and SHOULD NOT BE USED.
580
+
Note 1: The weird function signature is due to the fact that, for historical reasons, the function also accepts separate arguments as an alternative to the options object. This is deprecated due to ambiguity (y before x), and SHOULD NOT BE USED.
581
+
582
+
Note 2: The "duration" argument is only currently supported for Android.
If this is a vertical ScrollView scrolls to the bottom. If this is a horizontal ScrollView scrolls to the right.
591
593
592
594
Use `scrollToEnd({animated: true})` for smooth animated scrolling, `scrollToEnd({animated: false})` for immediate scrolling. If no options are passed, `animated` defaults to true.
593
595
596
+
For Android, you may specify a "duration" instead of using "animated", which simply resolves to a default duration of 250 milliseconds. Using `{animated: true}` for Android is the same as specifing `{duration: 250}`.
0 commit comments