The repository is an example integration of react native maps for both iOS and Android.
Follow the instructions below to setup the project in present directory.
git clone https://github.com/gaurav-12/react-native-maps-example.gitcd react-native-maps-examplenpm installcd ios && pod install && cd ..- Next, replace
YOUR_API_KEY_HEREwith the API key obtained from GCP console inAppDelegate.m. - Run
react-native run-ios, or from the iOS directory, openRNMaps.xcworkspacein Xcode and run from there.
Follow steps 1 to 3 from iOS and next follow these instructions:
- Replace
YOUR_API_KEY_HEREinAndroidManifest.xmlwith the API key obtained from GCP console. - And run
react-native run-androidfrom the terminal.