react-native-leaflet icon indicating copy to clipboard operation
react-native-leaflet copied to clipboard

net::ERR_FILE_NOT_FOUND

Open DanNielerl opened this issue 1 year ago • 0 comments

I got the following error log message: Encountered an error loading page {"canGoBack": false, "canGoForward": false, "code": -1, "description": "net::ERR_FILE_NOT_FOUND", "loading": false, "target": 59, "title": "", "url": "file:///android_asset/leaflet.html"} I was working with "expo": "~51.0.12", "react": "18.2.0", npm version 10.8.1 and testing on android.

I changed in the code library "{ uri: 'file:///android_asset/leaflet.html' }" by "require('../../android/src/main/assets/leaflet.html')" And that worked, but that's not a good practice, Is there another option?

DanNielerl avatar Jun 12 '24 16:06 DanNielerl