Deletion fix

This commit is contained in:
Milan Paunovic
2024-12-24 16:07:18 +01:00
parent c93d66d13d
commit 10f6616cd0
7 changed files with 78 additions and 38 deletions

View File

@ -152,7 +152,11 @@ export const AuthContextProvider: FC<{ children: ReactNode }> = ({children}) =>
useEffect(() => {
if (!initializing) {
SplashScreen.hideAsync();
if(auth().currentUser) {
setTimeout(() => SplashScreen.hideAsync(), 1000);
} else {
SplashScreen.hideAsync();
}
}
}, [initializing]);