Add map credentials
This commit is contained in:
parent
cc26d7aad3
commit
82e1a47c15
2 changed files with 8 additions and 1 deletions
7
app.json
7
app.json
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue