Commit 84901f04 by G

navigate to the correct screen. add a todo to make sure i remove the sample code later

parent fa11aba1
...@@ -17,6 +17,7 @@ const HomeUserNotLoggedIn: MainStackScreenComponentProps<"homeUserNotLoggedIn"> ...@@ -17,6 +17,7 @@ const HomeUserNotLoggedIn: MainStackScreenComponentProps<"homeUserNotLoggedIn">
navigation.replace("appBottomTabsNavigator"); navigation.replace("appBottomTabsNavigator");
} }
// TODO :: Remove this test code for modals.
const modal = async () => { const modal = async () => {
try { try {
await myPromiseModal(); await myPromiseModal();
...@@ -64,7 +65,7 @@ const HomeUserNotLoggedIn: MainStackScreenComponentProps<"homeUserNotLoggedIn"> ...@@ -64,7 +65,7 @@ const HomeUserNotLoggedIn: MainStackScreenComponentProps<"homeUserNotLoggedIn">
variant={"full"} variant={"full"}
textVariants={"primary"} textVariants={"primary"}
label="Se connecter" label="Se connecter"
onPress={modal} onPress={() => navigation.navigate("userLoginScreen")}
// onPress={() => // onPress={() =>
// showModal( // showModal(
// <InformationModal // <InformationModal
......
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