WebView Navigation url is not getting updated #24415
Labels
Bug
Component: WebView
Related to the WebView component.
Resolution: Locked
This issue was locked by the bot.
I am using webview to navigate next webpage but whenever i clicked on link of webview , the Navigation url remains same
i have some logic like want to show and hide my view on webview clicked
react native info :
React Native version: react-native-cli: 2.0.1
react-native: 0.57.8
code:
<WebView
ref={webView => { this.refWeb = webView; }}
style={{
height:320,
justifyContent: 'center',
alignItems: 'center',
onNavigationStateChange = (navState) => {
console.log(navState);
if(navState.url===initialUrl.DOMAIN_URL){
this.setState({
canGoBack: navState.canGoBack,
canGoForward: navState.canGoForward,
changedUrl:false
})
}else{
this.setState({
canGoBack: navState.canGoBack,
canGoForward: navState.canGoForward,
changedUrl : true
}
Environment
VSCode version: 1.30.2(user)
OS platform and version: Windows 10
NodeJS version: 8.9.3
skip envinfo
The text was updated successfully, but these errors were encountered: