Howto install react-native-maps
This document is to help all the react native developers out there actually get the AirBnb Google Maps up and running with the latest react (at time of this writing 0.55).
Please also use this as a "non-cocoapod" option to installing the Google Maps framework.
- Install the latest package from the repo
- Download the Google Maps framework from Google:
- Scroll to Step 2
- Select INSTALL MANUALLY
- Follow instructions to download
- Installing Google Maps for iOS We suggest grabbing all the *.framework (leave the premium MB4 one out if you do not have a Google preimum account).
- Drag the *.framework into your React Native Xcode project We created a top-level folder for Xcode project called Frameworks for 3rd party vendors
Make sure your GoogleMapsBase.framework, GoogleMapsCore.framdwork, and GoogleMaps.framework are all listed in the Compiled Sources. ** You might need to drag them into Embedded Frameworks depending your Xcode project setup too.
- Search Xcode Build Settings for "Header Paths" and add your new framwork folder from above:
- Install AirMaps React Native Wrapper
- Drag both folders into your Xcode project and ignore the Airmaps.xcproject
- Now link
We run this command to link the Android side (which works fine as-is) and make sure once we can still successfully link npm updates.
Can you share your code example