themed-button, themed-mapview, selectChantier maj
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* https://docs.expo.dev/guides/color-schemes/
|
||||
*/
|
||||
|
||||
import { Colors } from '@/constants/theme';
|
||||
import { Colors, MapColor } from '@/constants/theme';
|
||||
import { useColorScheme } from '@/hooks/use-color-scheme';
|
||||
|
||||
export function useThemeColor(
|
||||
@@ -19,3 +19,8 @@ export function useThemeColor(
|
||||
return Colors[theme][colorName];
|
||||
}
|
||||
}
|
||||
|
||||
export function useThemeColorMap() {
|
||||
const theme = useColorScheme() ?? 'light';
|
||||
return MapColor[theme];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user