From afa4c7a57076d1cc8e2747726b69a5e949d5144a Mon Sep 17 00:00:00 2001 From: G Date: Wed, 8 May 2024 10:07:46 +0000 Subject: [PATCH] Fix :: app crashing. this was due to navigation replace method since the recent upgrade in rn --- src/screens/UserLoginScreen.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/screens/UserLoginScreen.tsx b/src/screens/UserLoginScreen.tsx index afe2dbe..6a032a7 100644 --- a/src/screens/UserLoginScreen.tsx +++ b/src/screens/UserLoginScreen.tsx @@ -29,8 +29,9 @@ const UserLoginScreen: UnloggedUserStackScreenComponentProps<"userLoginScreen"> mutationFn: authenticateUser, onSuccess: (data) => { setAuthenticationData(data); - navigation.popToTop(); - navigation.replace("bottomTabs"); + // navigation.popToTop(); + // navigation.replace("bottomTabs"); + navigation.navigate("bottomTabs"); }, // biome-ignore lint/suspicious/noExplicitAny: onError: (error: AxiosError) => { @@ -113,6 +114,7 @@ const UserLoginScreen: UnloggedUserStackScreenComponentProps<"userLoginScreen"> textVariants={"primary"} label="Se connecter" onPress={() => { + // navigation.popToTop(); // navigation.navigate("bottomTabs"); submit(); }} -- libgit2 0.27.1