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:
Fran 2017-04-19 04:29:47 -07:00 committed by Facebook Github Bot
parent 5121434262
commit e974798656

View File

@ -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.