self -> this in ScrollResponder
Summary: I *think* this is causing a crash for me in a release build (curiously, not a debug build): ``` ReferenceError: Can't find variable: self ``` I saw this in 0.18.1, which I assume was renamed to v0.19.0-rc. Closes https://github.com/facebook/react-native/pull/5562 Reviewed By: svcscm Differential Revision: D2866491 Pulled By: androidtrunkagent fb-gh-sync-id: 196f718bf807c5eef676f66f1e15d7bde9475d5b
This commit is contained in:
parent
7e64ad8fc4
commit
affd6230fe
|
@ -372,7 +372,7 @@ var ScrollResponderMixin = {
|
|||
*/
|
||||
scrollResponderScrollWithoutAnimationTo: function(offsetX: number, offsetY: number) {
|
||||
console.warn('`scrollResponderScrollWithoutAnimationTo` is deprecated. Use `scrollResponderScrollTo` instead');
|
||||
self.scrollResponderScrollTo(offsetX, offsetY, false);
|
||||
this.scrollResponderScrollTo(offsetX, offsetY, false);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue