mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
[react_native] JS files from D2038965: Extract view specific commands from UIManager.
This commit is contained in:
@@ -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
|
||||
);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user