Fix scrollResponderScrollTo deprecated warning
Summary:Fix the warning generated when some ScrollResponder methods call the deprecated form of scrollResponderScrollTo. Closes https://github.com/facebook/react-native/pull/6138 Differential Revision: D2976681 fb-gh-sync-id: 3f5195aeebbffeccadb4bbffc55d52d7f89a9b2d shipit-source-id: 3f5195aeebbffeccadb4bbffc55d52d7f89a9b2d
This commit is contained in:
parent
2d921eeb70
commit
3ed66ee7b5
|
@ -391,7 +391,7 @@ var ScrollResponderMixin = {
|
|||
*/
|
||||
scrollResponderScrollWithoutAnimationTo: function(offsetX: number, offsetY: number) {
|
||||
console.warn('`scrollResponderScrollWithoutAnimationTo` is deprecated. Use `scrollResponderScrollTo` instead');
|
||||
this.scrollResponderScrollTo(offsetX, offsetY, false);
|
||||
this.scrollResponderScrollTo({x: offsetX, y: offsetY, animated: false});
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue