Commit afa4c7a5 by G

Fix :: app crashing. this was due to navigation replace method since the recent upgrade in rn

parent 8438d26d
......@@ -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: <Axios error>
onError: (error: AxiosError<any>) => {
......@@ -113,6 +114,7 @@ const UserLoginScreen: UnloggedUserStackScreenComponentProps<"userLoginScreen">
textVariants={"primary"}
label="Se connecter"
onPress={() => {
// navigation.popToTop();
// navigation.navigate("bottomTabs");
submit();
}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment