A Map component that uses Apple Maps on iOS and Google Maps on Android. Built by Airbnb at airbnb/react-native-maps. No setup required for use within the Exponent app, or within a standalone app for iOS. See below for instructions on how to configure for deployment as a standalone app on Android.
Note: It is currently not possible to use Google Maps on iOS despite being supported upstream in react-native-maps. We may add this feature if there is enough demand, let us know if you need it.
import React from 'react';
import { Components } from 'exponent';
export default class HomeScreen extends React.Component {
static route = {
navigationBar: {
visible: false,
},
}
render() {
return (
<Components.MapView
style={{flex: 1}}
initialRegion={{
latitude: 37.78825,
longitude: -122.4324,
latitudeDelta: 0.0922,
longitudeDelta: 0.0421,
}}
/>
);
}
}
Exponent.Components.MapView()
See full documentation at airbnb/react-native-maps.
If you have already integrated Google Sign In into your standalone app, this is very easy. Otherwise, there are some additional steps.
If you already have Google Sign In configured
exp.json
, copy the API key from android.config.googleSignIn
to android.config.googleMaps.apiKey
.If you already have not configured Google Sign In
ca.brentvatne.growlerprowler
)android.package
from exp.json
(eg: ca.brentvatne.growlerprowler
) to the Package name field.keytool -list -printcert -jarfile growler.apk | grep SHA1 | awk '{ print $2 }'
where growler.apk
is the path to the apk you built in step 1.exp.json
under the android.config.googleMaps.apiKey
field. See an example diff.Save
and then rebuild the app like in step 1.No special configuration required.
© Copyright 2025, Exponent. Created using Gatsby.