import React, { useEffect } from "react"; import { Appearance } from "react-native"; import { createNativeStackNavigator } from "@react-navigation/native-stack"; import { NavigationContainer } from "@react-navigation/native"; import { SafeAreaProvider } from "react-native-safe-area-context"; import { darkTheme, lightTheme } from "@/utils/theme"; import { GestureHandlerRootView } from "react-native-gesture-handler"; import { useAppSelector } from "@/utils/hooks/StoreHook"; import { navigationRef } from "@/utils/navigationRef/RootNavigation"; import { AuthStack } from "./AuthStack"; export type RootStackParamList = { AuthStack: undefined; }; export const ThemeContext: any = React.createContext({}); const Stack = createNativeStackNavigator(); const AppNavigation = () => { const { theme } = useAppSelector((state) => state.settings); const colorScheme = Appearance.getColorScheme() ?? "light"; const appTheme = theme === "system" ? colorScheme : theme; return ( {/* */} ); }; export default AppNavigation;