mirror of
https://github.com/status-im/react-native.git
synced 2025-01-26 17:30:25 +00:00
Udpate scrollTo example
Summary: This PR updates the example of scrollTo that uses `;` instead of `,` to separate x, y and animated values. Closes https://github.com/facebook/react-native/pull/13318 Differential Revision: D4913285 Pulled By: javache fbshipit-source-id: 02c219fbeae0f9e3b63f4b64eb4cca34868641c1
This commit is contained in:
parent
5121434262
commit
e974798656
@ -436,7 +436,7 @@ const ScrollView = React.createClass({
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* `scrollTo({x: 0; y: 0; animated: true})`
|
||||
* `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 an alternative to the options object.
|
||||
|
Loading…
x
Reference in New Issue
Block a user