添加主题切换、多语言支持

This commit is contained in:
yuchenglong
2026-01-12 15:31:47 +08:00
parent 486a298a1d
commit 34b89b54c4
29 changed files with 702 additions and 558 deletions

View File

@@ -1 +1,11 @@
export { useColorScheme } from 'react-native';
import { useTheme } from "@/context/ThemeContext";
import { ColorSchemeName } from "react-native";
export function useColorScheme(): ColorSchemeName {
try {
const { theme } = useTheme();
return theme;
} catch (e) {
return "light";
}
}