Correctif navigation deconnection

peristanceBDD
Alban GUILHOT 2 years ago
parent 3b2bf5f6b9
commit 59a2c64621

@ -82,13 +82,13 @@ function Settings(props: { navigation: any; }) {
resetTabConv(); resetTabConv();
resetCurrentConv(); resetCurrentConv();
resetTabGame(); resetTabGame();
resetTabGameMulti(); resetTabGameMulti();
resetTabGameSolo(); resetTabGameSolo();
resetTabSkin(); resetTabSkin();
resetMatch(); resetMatch();
resetTabUser(); resetTabUser();
navigation.navigate("SignIn");
} }
return ( return (
@ -125,7 +125,7 @@ function Settings(props: { navigation: any; }) {
</View> </View>
<View style={{alignSelf: "flex-end", padding: 50, alignItems: "center", width: "100%"}}> <View style={{alignSelf: "flex-end", padding: 50, alignItems: "center", width: "100%"}}>
<Pressable onPress={() => {disconnect(); navigation.navigate("SignIn");}} style={styles.button}> <Pressable onPress={() => {disconnect();}} style={styles.button}>
<Text style={styles.buttonText}>Se déconnecter</Text> <Text style={styles.buttonText}>Se déconnecter</Text>
</Pressable> </Pressable>

Loading…
Cancel
Save