diff --git a/bob_party/src/components/BotBar.tsx b/bob_party/src/components/BotBar.tsx index 41a12a5..f42e1d7 100644 --- a/bob_party/src/components/BotBar.tsx +++ b/bob_party/src/components/BotBar.tsx @@ -21,7 +21,8 @@ FC<{nav: any, state?: String }> = switch (state) { case 'Home': - imgMid = sgamepad + case 'Game': + imgMid = sgamepad break; case 'Chat': imgLeft = smessage @@ -41,7 +42,12 @@ FC<{nav: any, state?: String }> = source={imgLeft} /> - nav.navigate('HomeTab')}> + { + if (state==='Game') { + return ( nav.goBack()) + } + return (nav.navigate('HomeTab')) + }}> - @@ -39,13 +35,8 @@ function GameChoice(props: { navigation: any; }) { /> );