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
This commit is contained in:
parent
d1864fa436
commit
fef01ed394
|
@ -370,7 +370,7 @@ var ScrollResponderMixin = {
|
||||||
* Like `scrollResponderScrollTo` but immediately scrolls to the given
|
* Like `scrollResponderScrollTo` but immediately scrolls to the given
|
||||||
* position
|
* position
|
||||||
*/
|
*/
|
||||||
scrollResponderScrollWithouthAnimationTo: function(offsetX: number, offsetY: number) {
|
scrollResponderScrollWithoutAnimationTo: function(offsetX: number, offsetY: number) {
|
||||||
if (Platform.OS === 'android') {
|
if (Platform.OS === 'android') {
|
||||||
UIManager.dispatchViewManagerCommand(
|
UIManager.dispatchViewManagerCommand(
|
||||||
React.findNodeHandle(this),
|
React.findNodeHandle(this),
|
||||||
|
|
|
@ -346,7 +346,7 @@ var ScrollView = React.createClass({
|
||||||
|
|
||||||
scrollWithoutAnimationTo: function(destY?: number, destX?: number) {
|
scrollWithoutAnimationTo: function(destY?: number, destX?: number) {
|
||||||
// $FlowFixMe - Don't know how to pass Mixin correctly. Postpone for now
|
// $FlowFixMe - Don't know how to pass Mixin correctly. Postpone for now
|
||||||
this.getScrollResponder().scrollResponderScrollWithouthAnimationTo(
|
this.getScrollResponder().scrollResponderScrollWithoutAnimationTo(
|
||||||
destX || 0,
|
destX || 0,
|
||||||
destY || 0,
|
destY || 0,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue