React-Native pre-load uri while webview not visible
<p>I have a webview in react as follows.</p>

<pre><code>      &lt;WebView
        source={{ uri: this.state.url }}
        style={ this.state.style }
        javaScriptEnabled = { true }
        startInLoadingState = {true}
        onLoad = {this.showPage()}
        onLoadEnd = {this.showPage()}
      /&gt;
</code></pre>

<p>When I set this.state.url I would like the webview to load the url immediately, and then after loading onLoad or onLoadEnd calls the showPage function which shows the webview content. I cannot seem to get this to work - the webview only loads the url when it's visible in the dom. Is there a way to do this?</p>