From 80de404073dcce47a42babfa08fa83efa9049a3a Mon Sep 17 00:00:00 2001
From: Website Deployment Script horizontal={true}.
Makes the sections headers sticky. The sticky behavior means that it will scroll with the content at the top of the section until it reaches the top of the screen, at which point it will stick to the top until it -is pushed off the screen by the next section header.
You can edit the content above on GitHub and send us a pull request!
Examples # | Edit on GitHub |
Exports some data, e.g. for perf investigations or analytics.
Scrolls to a given x, y offset, either immediately or with a smooth animation.
See ScrollView#scrollTo.
If this is a vertical ListView scrolls to the bottom. +If this is a horizontal ListView scrolls to the right.
Use scrollToEnd({animated: true}) for smooth animated scrolling,
+scrollToEnd({animated: false}) for immediate scrolling.
+If no options are passed, animated defaults to true.
See ScrollView#scrollToEnd.
You can edit the content above on GitHub and send us a pull request!
Examples # | Edit on GitHub |
snapToAlignment.The current scale of the scroll view content. The default value is 1.0.
Scrolls to a given x, y offset, either immediately or with a smooth animation.
Syntax:
scrollTo(options: {x: number = 0; y: number = 0; animated: boolean = true})
Note: The weird argument signature is due to the fact that, for historical reasons,
+with horizontal={true}.
The current scale of the scroll view content. The default value is 1.0.
Scrolls to a given x, y offset, either immediately or with a smooth animation.
Example:
scrollTo({x: 0; y: 0; animated: true})
Note: The weird function signature is due to the fact that, for historical reasons, the function also accepts separate arguments as as alternative to the options object. -This is deprecated due to ambiguity (y before x), and SHOULD NOT BE USED.
Deprecated, do not use.
You can edit the content above on GitHub and send us a pull request!
Examples # | Edit on GitHub |
If this is a vertical ScrollView scrolls to the bottom. +If this is a horizontal ScrollView scrolls to the right.
Use scrollToEnd({animated: true}) for smooth animated scrolling,
+scrollToEnd({animated: false}) for immediate scrolling.
+If no options are passed, animated defaults to true.
See ScrollView#scrollToEnd.
Deprecated, use scrollTo instead.
You can edit the content above on GitHub and send us a pull request!
Examples # | Edit on GitHub |