Closed Bahnasawy closed 1 month ago
This is included by default in Expo CLI since it was part of Expo Go when we migrated build systems. https://github.com/expo/expo/blob/8ceea398fb1a13ef70ea736f69fc9f61b15db3ff/packages/%40expo/config-plugins/src/ios/Maps.ts#L16
Just set values such as ios.config.googleMapsApiKey
and it will be setup.
Why
To use google maps with
react-native-maps
, native code including the google maps api key needs to be included in the build.How
This plugin was built by taking a look at the other Expo Config Plugins in this repo and copying their implementation.
Test Plan
This plugin was first implemented and tested outside of this repo by running expo prebuild with the plugin added to the list of plugins in app.config.js like this:
This is the output:
App Delegate
Podfile
I have already built this and tested that google maps works on both ios and android, so hopefully no further testing is needed.