TTikotok V4
This commit is contained in:
@@ -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/')
|
||||
|
||||
Reference in New Issue
Block a user