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.git
cd react-native-maps-example
npm install
cd ios && pod install && cd ..
- Next, replace
YOUR_API_KEY_HERE
with the API key obtained from GCP console inAppDelegate.m
. - Run
react-native run-ios
, or from the iOS directory, openRNMaps.xcworkspace
in Xcode and run from there.
Follow steps 1 to 3 from iOS and next follow these instructions:
- Replace
YOUR_API_KEY_HERE
inAndroidManifest.xml
with the API key obtained from GCP console. - And run
react-native run-android
from the terminal.