From fef01ed394da7548b96f7b01c3bf268a94651c22 Mon Sep 17 00:00:00 2001 From: Brent Vatne Date: Tue, 29 Dec 2015 12:41:34 -0800 Subject: [PATCH] ScrollWithouth => ScrollWithout Summary: Oops! Closes https://github.com/facebook/react-native/pull/5029 Reviewed By: svcscm Differential Revision: D2793490 Pulled By: vjeux fb-gh-sync-id: 0115d3ef38cad3e838241937263308827e56f25f --- Libraries/Components/ScrollResponder.js | 2 +- Libraries/Components/ScrollView/ScrollView.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/Components/ScrollResponder.js b/Libraries/Components/ScrollResponder.js index 3374cf22d..d6e7f6150 100644 --- a/Libraries/Components/ScrollResponder.js +++ b/Libraries/Components/ScrollResponder.js @@ -370,7 +370,7 @@ var ScrollResponderMixin = { * Like `scrollResponderScrollTo` but immediately scrolls to the given * position */ - scrollResponderScrollWithouthAnimationTo: function(offsetX: number, offsetY: number) { + scrollResponderScrollWithoutAnimationTo: function(offsetX: number, offsetY: number) { if (Platform.OS === 'android') { UIManager.dispatchViewManagerCommand( React.findNodeHandle(this), diff --git a/Libraries/Components/ScrollView/ScrollView.js b/Libraries/Components/ScrollView/ScrollView.js index a23b0a248..870044eca 100644 --- a/Libraries/Components/ScrollView/ScrollView.js +++ b/Libraries/Components/ScrollView/ScrollView.js @@ -346,7 +346,7 @@ var ScrollView = React.createClass({ scrollWithoutAnimationTo: function(destY?: number, destX?: number) { // $FlowFixMe - Don't know how to pass Mixin correctly. Postpone for now - this.getScrollResponder().scrollResponderScrollWithouthAnimationTo( + this.getScrollResponder().scrollResponderScrollWithoutAnimationTo( destX || 0, destY || 0, );