Skip to content

Commit

Permalink
set state to LOADING on reload()
Browse files Browse the repository at this point in the history
Summary:
facebook#8239
Closes facebook#8247

Differential Revision: D3460015

Pulled By: javache

fbshipit-source-id: dd41fc7cf01a07acecd124733f8ef109de5ccc35
  • Loading branch information
stereodenis authored and Facebook Github Bot committed Jun 21, 2016
1 parent 4c3c15f commit b2c5584
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Libraries/Components/WebView/WebView.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b2c5584

Please sign in to comment.