diff --git a/app.json b/app.json index 3f8c7e5..9ae113b 100644 --- a/app.json +++ b/app.json @@ -16,6 +16,9 @@ "supportsTablet": true, "infoPlist": { "NSLocationWhenInUseUsageDescription": "This app needs your location for the treasure hunt." + }, + "config": { + "googleMapsApiKey": "AIzaSyA-G0tSzzcM5z6HyI23s8dzKDLCOrekhbw" } }, "android": { @@ -41,6 +44,14 @@ "eas": { "projectId": "c65a2849-f05d-48ef-9e36-950caa214a7d" } - } + }, + "plugins": [ + [ + "react-native-maps", + { + "googleMapsApiKey": "AIzaSyA-G0tSzzcM5z6HyI23s8dzKDLCOrekhbw" + } + ] + ] } } diff --git a/src/components/gameplay/PlayerMapView.js b/src/components/gameplay/PlayerMapView.js index 2a405c3..4476ae4 100644 --- a/src/components/gameplay/PlayerMapView.js +++ b/src/components/gameplay/PlayerMapView.js @@ -18,6 +18,7 @@ const PlayerMapView = ({userLocation, visibleCaches, heading, claimDistance}) => return ( { diff --git a/src/components/screens/MapScreen.js b/src/components/screens/MapScreen.js index d9de292..d199115 100644 --- a/src/components/screens/MapScreen.js +++ b/src/components/screens/MapScreen.js @@ -342,6 +342,7 @@ const MapScreen = ({navigation}) => { {