update theme dark, light mode

This commit is contained in:
2025-11-17 17:01:42 +07:00
parent e725819c01
commit 862c4e42a4
25 changed files with 1274 additions and 442 deletions

View File

@@ -16,6 +16,7 @@ import {
} from "@/constants";
import { useColorScheme } from "@/hooks/use-color-scheme.web";
import { usePlatform } from "@/hooks/use-platform";
import { useThemeContext } from "@/hooks/use-theme-context";
import {
getAlarmEventBus,
getBanzonesEventBus,
@@ -53,7 +54,7 @@ export default function HomeScreen() {
PolygonWithLabelProps[]
>([]);
const platform = usePlatform();
const theme = useColorScheme();
const theme = useThemeContext().colorScheme;
const scale = useRef(new Animated.Value(0)).current;
const opacity = useRef(new Animated.Value(1)).current;