react-native: webview error 'Encountered an error loading page @RN 0.34.1
E/ReactNativeJS(27798): 'Encountered an error loading page', { canGoForward: false,
E/ReactNativeJS(27798): code: -2,
E/ReactNativeJS(27798): canGoBack: false,
E/ReactNativeJS(27798): description: 'net::ERR_NAME_NOT_RESOLVED',
E/ReactNativeJS(27798): loading: false,
E/ReactNativeJS(27798): title: '',
E/ReactNativeJS(27798): url: 'https://www.baidu.com/',
E/ReactNativeJS(27798): target: 122 }
following my code://<Loading> component is custom.
<WebView
scalesPageToFit={true}
renderLoading={()=><Loading value="XXX"/>}
renderError={()=><Loading value="XXX"/>}
onError={()=><Loading/>}
source={{uri: "https://www.XXX.com"}}
style={{padding: 10}}
/>
Who can help me?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (3 by maintainers)
Yes, this is still an issue. I’m seeing this on the latest react-native as of July 22, 2017. Perhaps, wait for a solution to be posted before closing the issue.
+1 Same here, does any one have a proper solution for this issue.
Are you set up a proxy?