From b2c5584fceb17f09b53ffd75345c39f65694174c Mon Sep 17 00:00:00 2001 From: Denis Date: Tue, 21 Jun 2016 02:43:05 -0700 Subject: [PATCH] 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 --- Libraries/Components/WebView/WebView.ios.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Libraries/Components/WebView/WebView.ios.js b/Libraries/Components/WebView/WebView.ios.js index 9e8fd88ab0f..778f4ef8b17 100644 --- a/Libraries/Components/WebView/WebView.ios.js +++ b/Libraries/Components/WebView/WebView.ios.js @@ -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,