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:
Denis
2016-06-21 02:43:49 -07:00
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,