Skip to content

Commit

Permalink
fix flow types
Browse files Browse the repository at this point in the history
  • Loading branch information
dannycochran committed Jan 3, 2018
1 parent 669b9bf commit 9219228
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Libraries/Components/ScrollResponder.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ var ScrollResponderMixin = {
* Also note "duration" is currently only supported for Android.
*/
scrollResponderScrollTo: function(
x?: number | { x?: number, y?: number, animated?: boolean },
x?: number | { x?: number, y?: number, animated?: boolean, duration?: number },
y?: number,
animated?: boolean,
duration?: number
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Components/ScrollView/ScrollView.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ const ScrollView = createReactClass({
* Also note "duration" is currently only supported for Android.
*/
scrollTo: function(
y?: number | { x?: number, y?: number, animated?: boolean },
y?: number | { x?: number, y?: number, animated?: boolean, duration?: number },
x?: number,
animated?: boolean,
duration?: number
Expand Down

0 comments on commit 9219228

Please sign in to comment.