Closed vantb9x closed 6 years ago
When I have this code with onShouldStartLoadWithRequest for preventing some url:
<WebViewAndroid ref="_webView" onShouldStartLoadWithRequest={this.onShouldStartLoadWithRequestAndroid} source={{uri: 'https://www.google.com'}} style={styles.containerWebView} />` onShouldStartLoadWithRequest(event) { if (event.url === 'https://www.mywebsiteexample.com/') { return true; } else { return false; } }
When I click any link on google website, it can not open new page in WebViewAndroid. It stays at google homepage.
I want it will navigate to exactly page.
When I have this code with onShouldStartLoadWithRequest for preventing some url:
When I click any link on google website, it can not open new page in WebViewAndroid. It stays at google homepage.![1531278642366](https://user-images.githubusercontent.com/15814937/42548754-ead9ee36-84f2-11e8-892b-0c5e0bbff9d0.JPEG)
I want it will navigate to exactly page.