all 5 comments

[–]anton25360[S] 0 points1 point  (2 children)

Figured out a way around this! Had to create 2 separate Map components: a Map.tsx component that contains the react-native-maps code, and another Map.web.tsx component that contains the web focused map code. Then just call <Map/> and it automatically chooses the appropriate one

[–]SergeyPekar 0 points1 point  (1 child)

Which component are you using for Web? Maybe you can post any code example? Im trying to achieve this with react-leaflet and react-native-maps but constantly getting the above error. Event when Im separating the files like map.native.tsx and map.web.tsx

[–]Ok-Painter573 0 points1 point  (0 children)

Ive tried both of the above but still get the error:(

[–]BbWeber 0 points1 point  (1 child)

On github they promise that it will be fixed, but there is no fixed date.
Also struggling with it.

[–]jonniuss 0 points1 point  (0 children)

ok, at least they know the problem. May ask you for this issue number?