title: How to close webview after the work is done in react native
body: <p>I am using following code to render a webview:</p>
  
  <pre><code>const someHTMLFile = require('./somefile.html')
  render() {
    return (
       &lt;View style={{flex: 1}}&gt;
        &lt;WebView
            style={{flex: 1}}
            source={someHTMLFile}
            ref={( webView ) =&gt; this.webView = webView}
        /&gt;      
      &lt;/View&gt;
    );
  }
  </code></pre>
  
  <p>In this html file, there is a form which is automatically submitted when the webview loads (with some data sent from reactnative part of code) and in the end, the file is redirected to a specific url, where some processing is done (on the send data), and right now, it returns nothing. So the screen goes blank.</p>
  
  <p>So, at this point, I want to close the webview and take the user back to my reactnative app.. So, how can I do that? any suggestions?</p>