Add map credentials

This commit is contained in:
Maarten 2024-08-02 20:19:02 +02:00
parent cc26d7aad3
commit 82e1a47c15
2 changed files with 8 additions and 1 deletions

View file

@ -20,7 +20,12 @@
"foregroundImage": "./assets/images/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"package": "nl.maartenvr98.kliko"
"package": "nl.maartenvr98.kliko",
"config": {
"googleMaps": {
"apiKey": "AIzaSyCZc8B45A-NZ2BwP_C6wNTkJknqy8EkErg"
}
}
},
"web": {
"bundler": "metro",

View file

@ -9,6 +9,7 @@ import MapView from '@/components/map/map';
import List from '@/components/List';
import {Request} from '@/services/request';
import {Marker} from 'react-native-maps';
import {PROVIDER_GOOGLE} from 'react-native-maps';
export default function MapScreen() {
const colorScheme = useColorScheme() ?? 'light';
@ -82,6 +83,7 @@ export default function MapScreen() {
<ThemedView style={styles.mapContainer}>
<MapView
style={styles.map}
provider={PROVIDER_GOOGLE}
initialRegion={{
latitude: 52.043420,
longitude: 5.630960,