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", "foregroundImage": "./assets/images/adaptive-icon.png",
"backgroundColor": "#ffffff" "backgroundColor": "#ffffff"
}, },
"package": "nl.maartenvr98.kliko" "package": "nl.maartenvr98.kliko",
"config": {
"googleMaps": {
"apiKey": "AIzaSyCZc8B45A-NZ2BwP_C6wNTkJknqy8EkErg"
}
}
}, },
"web": { "web": {
"bundler": "metro", "bundler": "metro",

View file

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