From 6d1b4a316047a979c79f4feaaec9f1ddb2942a6c Mon Sep 17 00:00:00 2001 From: G Date: Mon, 9 Sep 2024 15:21:39 +0000 Subject: [PATCH] call the method to hide the splash screen if authentication context is done checking --- src/navigations/AppMainStackNavigator.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/navigations/AppMainStackNavigator.tsx b/src/navigations/AppMainStackNavigator.tsx index a2ad6f1..5416642 100644 --- a/src/navigations/AppMainStackNavigator.tsx +++ b/src/navigations/AppMainStackNavigator.tsx @@ -22,9 +22,9 @@ const AppMainStackNavigator = () => { log.info("isAuthenticating"); return null; } - async () => { + (async () => { await SplashScreen.hideAsync(); - }; + })(); if (!isAuthenticating && !isAuthenticated) { log.info("Navigating to UserLoginScreen"); return ( -- libgit2 0.27.1