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

React Native Web support

Open kk90 opened this issue 5 years ago • 3 comments
trafficstars

Hello Is it possible to add support for web? Following message is thrown when running on web:

Error: "The method or property expo-file-system.readAsStringAsync is not available on web, are you sure you've linked all the native dependencies properly?"

Same project on android works well. Thank You

kk90 avatar Feb 24 '20 09:02 kk90

I don't know. Do you know if react-native-webview is supported on the web? The map itself is an HTML page inside of a react-native-webview, so react-native-webview support is required in order to use this library

reggie3 avatar Mar 14 '20 10:03 reggie3

There is a package react-native-web-webview that might be useful

daxreyes avatar May 20 '20 10:05 daxreyes

I assume it would probably just be enough to add a JS bundle for the HTML folder to the built package - that way, in my app I could have a Map.web.tsx that just directly renders the MapComponent component directly, without a WebView in-between.

phryneas avatar May 10 '22 09:05 phryneas