ADD: Ajout du support de gamechoice sur BotBar et TopBar

stub-api
Alban GUILHOT 3 years ago
parent 7c6474832e
commit 6568181089

@ -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}
/>
</Pressable>
<Pressable onPress={()=> nav.navigate('HomeTab')}>
<Pressable onPress={()=> {
if (state==='Game') {
return ( nav.goBack())
}
return (nav.navigate('HomeTab'))
}}>
<Image
style={styles.icon}
source={imgMid}

@ -22,12 +22,8 @@ function GameChoice(props: { navigation: any; }) {
const { navigation } = props
return (
<View style={styles.container}>
<GoBackBar
title="JOUONS !"
styleTitle={styles.titre}
styleHeader={styles.header}
styleIcon={styles.engrenage}
rightIcon={cross}
<TopBar
skin={skinTest}
nav={navigation}
/>
<View style={styles.body}>
@ -39,13 +35,8 @@ function GameChoice(props: { navigation: any; }) {
/>
</View>
<BotBar
messages={message}
games={gamepad}
shop={store}
style={styles.iconFooter}
styleStore={styles.iconStore}
nav={navigation}
styleBar={styles.footer}
state='Game'
/>
</View>
);

Loading…
Cancel
Save