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

Unexpected token(1:0)

Open zhangyanni666 opened this issue 3 years ago • 3 comments

./node_modules/react-native-leaflet-view/lib/module/LeafletView/index.js:22:7 Module not found: Can't resolve '../../android/src/main/assets/leaflet.html' 20 | 21 | const LEAFLET_HTML_SOURCE = Platform.select({

22 | ios: require('../../android/src/main/assets/leaflet.html'), | ^ 23 | android: { uri: 'file:///android_asset/leaflet.html' }, 24 | });

zhangyanni666 avatar Dec 07 '21 04:12 zhangyanni666

@pavel-corsaghin

zhangyanni666 avatar Dec 07 '21 04:12 zhangyanni666

@miallo help me~~~

zhangyanni666 avatar Dec 08 '21 03:12 zhangyanni666

I am sorry for the late response... Is this still a problem for you? Can you verify, if ./node_modules/react-native-leaflet-view/lib/android/src/main/assets/leaflet.html exists? Did you run npm run ios after installation?

miallo avatar Jan 01 '22 10:01 miallo