This commit is contained in:
2026-04-25 11:14:11 +02:00
parent 6f238b4d80
commit 72b45335dd
10 changed files with 271 additions and 29 deletions

View File

@@ -1,31 +1,11 @@
import {
DarkTheme,
DefaultTheme,
ThemeProvider,
} from "@react-navigation/native";
import { Stack } from "expo-router";
import { StatusBar } from "expo-status-bar";
import "react-native-reanimated";
import RootNavigation from "@/components/views/root-navigation";
import { AuthProvider } from "@/context/auth-context";
import { BirthdaysProvider } from "@/context/birthdays-context";
import { useColorScheme } from "@/hooks/use-color-scheme";
export const unstable_settings = {
anchor: "(tabs)",
};
export default function RootLayout() {
const colorScheme = useColorScheme();
return (
<BirthdaysProvider>
<ThemeProvider value={colorScheme === "dark" ? DarkTheme : DefaultTheme}>
<Stack>
<Stack.Screen name="index" options={{ headerShown: false }} />
<Stack.Screen name="add" options={{ headerShown: false }} />
</Stack>
<StatusBar style="auto" />
</ThemeProvider>
</BirthdaysProvider>
<AuthProvider>
<RootNavigation />
</AuthProvider>
);
}
}