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) { switch (state) {
case 'Home': case 'Home':
imgMid = sgamepad case 'Game':
imgMid = sgamepad
break; break;
case 'Chat': case 'Chat':
imgLeft = smessage imgLeft = smessage
@ -41,7 +42,12 @@ FC<{nav: any, state?: String }> =
source={imgLeft} source={imgLeft}
/> />
</Pressable> </Pressable>
<Pressable onPress={()=> nav.navigate('HomeTab')}> <Pressable onPress={()=> {
if (state==='Game') {
return ( nav.goBack())
}
return (nav.navigate('HomeTab'))
}}>
<Image <Image
style={styles.icon} style={styles.icon}
source={imgMid} source={imgMid}

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

Loading…
Cancel
Save