import { InteractionProvider } from '@/aesthetics/InteractionProvider'; import { SplashScreen } from '@/aesthetics/SplashScreen'; import { useAppLifecycle } from '@/common/hooks/useAppLifecycle'; import { AuthProvider } from '@/profile/auth/context'; import { PreferencesProvider } from '@/profile/preferences'; import { ProfileProvider } from '@/profile/ProfileProvider'; import { DatabaseProvider } from '@/remote/database'; import { MonitorProvider } from '@/remote/monitor/context'; import { awakenAddLog } from '@/add-log/food-detection/awakenAddLog'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { Stack } from 'expo-router'; const queryClient = new QueryClient(); awakenAddLog(); export default function RootLayout() { const { splashVisible, fadeAnim } = useAppLifecycle(); return ( {splashVisible && } ); }