mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
set state to LOADING on reload()
Summary: https://github.com/facebook/react-native/issues/8239 Closes https://github.com/facebook/react-native/pull/8247 Differential Revision: D3460015 Pulled By: javache fbshipit-source-id: dd41fc7cf01a07acecd124733f8ef109de5ccc35
This commit is contained in:
committed by
Facebook Github Bot
parent
4c3c15fd89
commit
b2c5584fce
@@ -362,6 +362,7 @@ var WebView = React.createClass({
|
||||
* Reloads the current page.
|
||||
*/
|
||||
reload: function() {
|
||||
this.setState({viewState: WebViewState.LOADING});
|
||||
UIManager.dispatchViewManagerCommand(
|
||||
this.getWebViewHandle(),
|
||||
UIManager.RCTWebView.Commands.reload,
|
||||
|
||||
Reference in New Issue
Block a user