I have updated react-native version to 0.59 and I tried to view the local HTML file in webview. I am getting the view as 'page as web page not available'/ could not be loaded because of net::ERR_ACESS_DENIED

<WebView source={{uri:'file:///data/..../index.html'}}/>

1 Answers

Gev On

Add your index.html to Android's android/app/src/main/assets/ folder and then set

  source={{ uri: 'file:///android_asset/index.html' }}