feat: 更新主题颜色和标签栏选项
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user