diff --git a/Libraries/Components/ScrollView/ScrollView.js b/Libraries/Components/ScrollView/ScrollView.js index 76419bce0..f8dc3bcba 100644 --- a/Libraries/Components/ScrollView/ScrollView.js +++ b/Libraries/Components/ScrollView/ScrollView.js @@ -211,11 +211,19 @@ var ScrollView = React.createClass({ }, scrollTo: function(destY?: number, destX?: number) { - RCTUIManager.scrollTo( - this.getNodeHandle(), - destX || 0, - destY || 0 - ); + if (Platform.OS === 'android') { + RCTUIManager.dispatchViewManagerCommand( + this.getNodeHandle(), + RCTUIManager.RCTScrollView.Commands.scrollTo, + [destX || 0, destY || 0] + ); + } else { + RCTUIManager.scrollTo( + this.getNodeHandle(), + destX || 0, + destY || 0 + ); + } }, scrollWithoutAnimationTo: function(destY?: number, destX?: number) { diff --git a/Libraries/Components/WebView/WebView.android.js b/Libraries/Components/WebView/WebView.android.js index 959422bbc..79ded6506 100644 --- a/Libraries/Components/WebView/WebView.android.js +++ b/Libraries/Components/WebView/WebView.android.js @@ -109,15 +109,27 @@ var WebView = React.createClass({ }, goForward: function() { - RCTUIManager.webViewGoForward(this.getWebWiewHandle()); + RCTUIManager.dispatchViewManagerCommand( + this.getWebWiewHandle(), + RCTUIManager.RCTWebView.Commands.goForward, + null + ); }, goBack: function() { - RCTUIManager.webViewGoBack(this.getWebWiewHandle()); + RCTUIManager.dispatchViewManagerCommand( + this.getWebWiewHandle(), + RCTUIManager.RCTWebView.Commands.goBack, + null + ); }, reload: function() { - RCTUIManager.webViewReload(this.getWebWiewHandle()); + RCTUIManager.dispatchViewManagerCommand( + this.getWebWiewHandle(), + RCTUIManager.RCTWebView.Commands.reload, + null + ); }, /**