Hello,
I am currently trying to display a Leaflet map on a react-native application. I use the Expo Snack online editor for testing. I imported the "leaflet" and "react-leaflet" packages:
{
"dependencies": {
"leaflet": "1.8.0",
"react-leaflet": "4.0.0",
"expo-constants": "~13.1.1",
"@expo/vector-icons": "^13.0.0",
"react-native-paper": "4.9.2"
}
}
but when importing "react-leaflet" in the App.js file, I have the following error:
react_leaflet error (Unable to resolve module 'hooks.js')
Can you help me, thanks.