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:
PJ Cabrera 2016-02-25 06:25:29 -08:00 committed by facebook-github-bot-7
parent 2d921eeb70
commit 3ed66ee7b5
1 changed files with 1 additions and 1 deletions

View File

@ -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});
},
/**