themed-button, themed-mapview, selectChantier maj
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
// MapScreen.tsx
|
||||
import { ThemedMapView } from '@/components/themed-mapview';
|
||||
import React from 'react';
|
||||
import { StyleSheet, View, Dimensions } from 'react-native';
|
||||
import MapView, { Marker, PROVIDER_DEFAULT } from 'react-native-maps';
|
||||
@@ -13,7 +14,7 @@ const MapScreen: React.FC = () => {
|
||||
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<MapView
|
||||
<ThemedMapView
|
||||
provider={PROVIDER_DEFAULT} // OpenStreetMap
|
||||
style={styles.map}
|
||||
region={region}
|
||||
@@ -23,7 +24,7 @@ const MapScreen: React.FC = () => {
|
||||
title="Paris"
|
||||
description="Capitale de la France"
|
||||
/>
|
||||
</MapView>
|
||||
</ThemedMapView>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user