TTikotok V4

This commit is contained in:
2026-07-10 11:29:04 +02:00
parent 1a9548cf25
commit 5c48def4e1
60 changed files with 6097 additions and 1319 deletions

View File

@@ -11,6 +11,7 @@ import { initDatabase, AppMetaDb } from '../services/database';
import * as SecureStore from 'expo-secure-store';
import * as SplashScreen from 'expo-splash-screen';
import { AuthService } from '../services/authService';
import { Analytics } from '../services/analytics';
import { AnimatedSplashScreen } from '../components/AnimatedSplashScreen';
// Prevent the splash screen from auto-hiding before asset loading is complete.
@@ -115,6 +116,12 @@ function RootLayoutInner() {
})();
}, [signOut]);
useEffect(() => {
if (pathname) {
Analytics.screen(pathname);
}
}, [pathname]);
const isAppReady = installCheckDone && !isInitializing && !isLoadingPlants;
const isAllowedWithoutSession = pathname.includes('onboarding')
|| pathname.includes('auth/')