From 0dcb643a3a313952b5b10112a380cd32db2fc46f Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Thu, 11 Jul 2019 18:22:12 +0000 Subject: [PATCH] Deploy website Deploy website version based on 5d6e80d5a2c8cce3263c9e0369bf3b20deba6a22 --- docs/next/scrollview.html | 12 ++++-------- docs/next/scrollview/index.html | 12 ++++-------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/docs/next/scrollview.html b/docs/next/scrollview.html index 1c70c526312..69a8f8c0d05 100644 --- a/docs/next/scrollview.html +++ b/docs/next/scrollview.html @@ -819,18 +819,14 @@ const styles = StyleSheet.create({

scrollTo()

scrollTo(
-  ([y]: number),
-  object,
-  ([x]: number),
-  ([animated]: boolean),
-  ([duration]: number),
+  options?: {x?: number, y?: number, animated?: boolean} | number,
+  deprecatedX?: number,
+    deprecatedAnimated?: boolean,
 );
 
-

Scrolls to a given x, y offset, either immediately, with a smooth animation, or, for Android only, a custom animation duration time.

+

Scrolls to a given x, y offset, either immediately, with a smooth animation.

Example:

scrollTo({x: 0, y: 0, animated: true})

-

Example with duration (Android only):

-

scrollTo({x: 0, y: 0, duration: 500})

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.


scrollToEnd()

diff --git a/docs/next/scrollview/index.html b/docs/next/scrollview/index.html index 1c70c526312..69a8f8c0d05 100644 --- a/docs/next/scrollview/index.html +++ b/docs/next/scrollview/index.html @@ -819,18 +819,14 @@ const styles = StyleSheet.create({

scrollTo()

scrollTo(
-  ([y]: number),
-  object,
-  ([x]: number),
-  ([animated]: boolean),
-  ([duration]: number),
+  options?: {x?: number, y?: number, animated?: boolean} | number,
+  deprecatedX?: number,
+    deprecatedAnimated?: boolean,
 );
 
-

Scrolls to a given x, y offset, either immediately, with a smooth animation, or, for Android only, a custom animation duration time.

+

Scrolls to a given x, y offset, either immediately, with a smooth animation.

Example:

scrollTo({x: 0, y: 0, animated: true})

-

Example with duration (Android only):

-

scrollTo({x: 0, y: 0, duration: 500})

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.


scrollToEnd()