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"> ...@@ -29,8 +29,9 @@ const UserLoginScreen: UnloggedUserStackScreenComponentProps<"userLoginScreen">
mutationFn: authenticateUser, mutationFn: authenticateUser,
onSuccess: (data) => { onSuccess: (data) => {
setAuthenticationData(data); setAuthenticationData(data);
navigation.popToTop(); // navigation.popToTop();
navigation.replace("bottomTabs"); // navigation.replace("bottomTabs");
navigation.navigate("bottomTabs");
}, },
// biome-ignore lint/suspicious/noExplicitAny: <Axios error> // biome-ignore lint/suspicious/noExplicitAny: <Axios error>
onError: (error: AxiosError<any>) => { onError: (error: AxiosError<any>) => {
...@@ -113,6 +114,7 @@ const UserLoginScreen: UnloggedUserStackScreenComponentProps<"userLoginScreen"> ...@@ -113,6 +114,7 @@ const UserLoginScreen: UnloggedUserStackScreenComponentProps<"userLoginScreen">
textVariants={"primary"} textVariants={"primary"}
label="Se connecter" label="Se connecter"
onPress={() => { onPress={() => {
// navigation.popToTop();
// navigation.navigate("bottomTabs"); // navigation.navigate("bottomTabs");
submit(); 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