react-native-maps: Tried to register two views with the same name AIRMap

Hey,

When I’m using a library (@draftbit/ui) that includes import MapView from 'react-native-maps', on Snack ONLY it will return the error message:

Tried to register two views with the same name AIRMap

If you go to this url:

and change draftbit version to 2.22.0, everything works. If you change it to 2.23.0, it breaks. The only difference in the code is the new react-native-maps import statement.

If I import react-native-maps directly on Snack, it works. This ONLY happens when using a library that uses react-native-maps ONLY on Snack.

Thanks!

Thanks for the report, Peter. I relayed this to TC and Satya. :ok_hand:

1 Like

Thanks Peter.
Should be resolved now

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.