themed-button, themed-mapview, selectChantier maj

This commit is contained in:
Rochas
2025-11-09 21:48:15 +01:00
parent a2f510db35
commit 7d38286bb7
10 changed files with 288 additions and 74 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>;
}