feat: 更新主题颜色和标签栏选项

This commit is contained in:
2026-03-09 07:53:55 +07:00
parent e41f1cfe1f
commit 007794688b
3 changed files with 27 additions and 6 deletions

View File

@@ -9,12 +9,28 @@ import { useColorScheme } from "react-native";
import { AppBootstrapProvider } from "@/providers/app-bootstrap-provider";
const lightTheme = {
...DefaultTheme,
colors: {
...DefaultTheme.colors,
primary: "#00D48C",
},
};
const darkTheme = {
...DarkTheme,
colors: {
...DarkTheme.colors,
primary: "#00D48C",
},
};
export default function RootLayout() {
const colorScheme = useColorScheme();
return (
<AppBootstrapProvider>
<ThemeProvider value={colorScheme === "dark" ? DarkTheme : DefaultTheme}>
<ThemeProvider value={colorScheme === "dark" ? darkTheme : lightTheme}>
<Stack>
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
</Stack>