FIX: réparation warn screen same name nested

stub-api
Alban GUILHOT 3 years ago
parent c15c463793
commit d4d8802a5d

@ -67,10 +67,10 @@ function MainTabNavigator() {
backBehavior='none' backBehavior='none'
screenOptions={{headerShown: false, tabBarStyle: { display: 'none' },}} screenOptions={{headerShown: false, tabBarStyle: { display: 'none' },}}
> >
<Tab.Screen name='Home' component={HomeStackScreen} /> <Tab.Screen name='HomeTab' component={HomeStackScreen} />
<Tab.Screen name='Store' component={StoreStackScreen} /> <Tab.Screen name='StoreTab' component={StoreStackScreen} />
<Tab.Screen name='Chat' component={ChatStackScreen} /> <Tab.Screen name='ChatTab' component={ChatStackScreen} />
<Tab.Screen name='Profile' component={Profile} /> <Tab.Screen name='ProfileTab' component={ProfileStackScreen} />
<Tab.Screen name='Test' component={Test} /> <Tab.Screen name='Test' component={Test} />
</Tab.Navigator> </Tab.Navigator>
</NavigationContainer> </NavigationContainer>

@ -13,7 +13,7 @@ function Store(props: { navigation: any; }) {
return ( return (
<View style={styles.container}> <View style={styles.container}>
<View style={styles.header}> <View style={styles.header}>
<Pressable onPress={() => navigation.navigate('Profile')}> <Pressable onPress={() => navigation.navigate('ProfileTab')}>
<Image <Image
style={styles.avatar} style={styles.avatar}
source={avatar} source={avatar}
@ -37,13 +37,13 @@ function Store(props: { navigation: any; }) {
source={message} source={message}
/> />
</Pressable> </Pressable>
<Pressable onPress={() => navigation.navigate('Home')}> <Pressable onPress={() => navigation.navigate('HomeTab')}>
<Image <Image
style={styles.iconFooter} style={styles.iconFooter}
source={gamepad} source={gamepad}
/> />
</Pressable> </Pressable>
<Pressable onPress={() => navigation.navigate('Store')}> <Pressable onPress={() => navigation.navigate('StoreTab')}>
<Image <Image
style={styles.iconStore} style={styles.iconStore}
source={store} source={store}

@ -18,8 +18,8 @@ function Home(props: { navigation: any; }) {
return ( return (
<View style={styles.container}> <View style={styles.container}>
<View style={styles.header}> <View style={styles.header}>
<Pressable onPress={() => navigation.navigate('Profile')}> <Pressable onPress={() => navigation.navigate('ProfileTab')}>
<SkinComponent skin={skinTest} children={styles.avatar} /> <SkinComponent skin={skinTest} children={styles.avatar} />
</Pressable> </Pressable>
<Text style={styles.titre}>BOB PARTY</Text> <Text style={styles.titre}>BOB PARTY</Text>
<Pressable onPress={() => navigation.navigate('Settings')}> <Pressable onPress={() => navigation.navigate('Settings')}>
@ -40,7 +40,7 @@ function Home(props: { navigation: any; }) {
/> />
</View> </View>
<View style={styles.footer}> <View style={styles.footer}>
<Pressable onPress={() => navigation.navigate('Chat')}> <Pressable onPress={() => navigation.navigate('ChatTab')}>
<Image <Image
style={styles.iconFooter} style={styles.iconFooter}
source={message} source={message}
@ -52,7 +52,7 @@ function Home(props: { navigation: any; }) {
source={gamepad} source={gamepad}
/> />
</Pressable> </Pressable>
<Pressable onPress={() => navigation.navigate('Store')}> <Pressable onPress={() => navigation.navigate('StoreTab')}>
<Image <Image
style={styles.iconStore} style={styles.iconStore}
source={store} source={store}

@ -31,19 +31,19 @@ function Store(props: { navigation: any; }) {
<Text style={styles.text}>couille</Text> <Text style={styles.text}>couille</Text>
</View> </View>
<View style={styles.footer}> <View style={styles.footer}>
<Pressable onPress={() => navigation.navigate('Chat')}> <Pressable onPress={() => navigation.navigate('ChatTab')}>
<Image <Image
style={styles.iconFooter} style={styles.iconFooter}
source={message} source={message}
/> />
</Pressable> </Pressable>
<Pressable onPress={() => navigation.navigate('Home')}> <Pressable onPress={() => navigation.navigate('HomeTab')}>
<Image <Image
style={styles.iconFooter} style={styles.iconFooter}
source={gamepad} source={gamepad}
/> />
</Pressable> </Pressable>
<Pressable onPress={() => navigation.navigate('Store')}> <Pressable onPress={() => navigation.navigate('StoreTab')}>
<Image <Image
style={styles.iconStore} style={styles.iconStore}
source={store} source={store}

@ -13,7 +13,7 @@ function Store(props: { navigation: any; }) {
return ( return (
<View style={styles.container}> <View style={styles.container}>
<View style={styles.header}> <View style={styles.header}>
<Pressable onPress={() => navigation.navigate('Profile')}> <Pressable onPress={() => navigation.navigate('ProfileTab')}>
<Image <Image
style={styles.avatar} style={styles.avatar}
source={avatar} source={avatar}
@ -31,13 +31,13 @@ function Store(props: { navigation: any; }) {
<Text style={styles.text}>couille</Text> <Text style={styles.text}>couille</Text>
</View> </View>
<View style={styles.footer}> <View style={styles.footer}>
<Pressable onPress={() => navigation.navigate('Chat')}> <Pressable onPress={() => navigation.navigate('ChatTab')}>
<Image <Image
style={styles.iconFooter} style={styles.iconFooter}
source={message} source={message}
/> />
</Pressable> </Pressable>
<Pressable onPress={() => navigation.navigate('Home')}> <Pressable onPress={() => navigation.navigate('HomeTab')}>
<Image <Image
style={styles.iconFooter} style={styles.iconFooter}
source={gamepad} source={gamepad}

Loading…
Cancel
Save