From d8e341dd7cabb66a353c754635b7ecdea1ffc820 Mon Sep 17 00:00:00 2001 From: alguilhot Date: Sun, 16 Oct 2022 00:03:01 +0200 Subject: [PATCH] FIX: navigation vers home et non homestack --- bob_party/src/components/BotBar.tsx | 7 +------ bob_party/src/navigation/AppNavigator.tsx | 7 +++---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/bob_party/src/components/BotBar.tsx b/bob_party/src/components/BotBar.tsx index 4f62f3e..2224396 100644 --- a/bob_party/src/components/BotBar.tsx +++ b/bob_party/src/components/BotBar.tsx @@ -42,12 +42,7 @@ FC<{nav: any, state?: String }> = source={imgLeft} /> - { - if (state==='Game') { - return ( nav.goBack()) - } - return (nav.navigate('HomeTab')) - }}> + {return (nav.navigate('Home'))}}> - + + - + ); } @@ -65,7 +65,6 @@ function MainTabNavigator() { return (