clean des composants, dossiers

This commit is contained in:
Rochas
2025-12-11 21:24:28 +01:00
parent 6446c3f975
commit 7092d09ba8
26 changed files with 46 additions and 54 deletions

View File

@@ -0,0 +1,22 @@
import MapView, { Marker, PROVIDER_DEFAULT, type MapViewProps } from 'react-native-maps';
import { useThemeColor, useThemeColorMap } from '@/hooks/use-theme-color';
export type ThemedMapViewProps = MapViewProps & {
lightColor?: string;
darkColor?: string;
};
export function ThemedMapView({children, style, lightColor, darkColor, ...otherProps }: ThemedMapViewProps) {
const mapeStyle = useThemeColorMap();
return<MapView customMapStyle={mapeStyle} style={style} {...otherProps}>
{children}
</MapView>;
}