From 704e20305153b5998aa9446f79d9b1ce0d91e565 Mon Sep 17 00:00:00 2001 From: alguilhot Date: Wed, 12 Oct 2022 15:30:46 +0200 Subject: [PATCH] ADD: Ajout de la BotBar sur les pages Home & Store --- bob_party/src/components/BotBar.tsx | 32 +++++++++++++++++++++++++++++ bob_party/src/screens/Chat.tsx | 3 ++- bob_party/src/screens/Home.tsx | 31 ++++++++++------------------ bob_party/src/screens/Profile.tsx | 5 ++--- bob_party/src/screens/Store.tsx | 31 ++++++++++------------------ 5 files changed, 58 insertions(+), 44 deletions(-) create mode 100644 bob_party/src/components/BotBar.tsx diff --git a/bob_party/src/components/BotBar.tsx b/bob_party/src/components/BotBar.tsx new file mode 100644 index 0000000..a987169 --- /dev/null +++ b/bob_party/src/components/BotBar.tsx @@ -0,0 +1,32 @@ +import { FC, ReactNode } from "react" +import { Pressable, Image, ImageStyle, Text, View, Alert, ImageSourcePropType, TextStyle } from "react-native" +import React from "react" + + +export const BotBar : +FC<{messages:ImageSourcePropType, games: ImageSourcePropType, shop: ImageSourcePropType, style: ImageStyle, nav: any, styleBar : any}> = +({messages, games, shop,style, nav,styleBar}) => +{ + return ( + + nav.navigate('ChatTab')}> + + + nav.navigate('HomeTab')}> + + + nav.navigate('StoreTab')}> + + + + ) +} \ No newline at end of file diff --git a/bob_party/src/screens/Chat.tsx b/bob_party/src/screens/Chat.tsx index 9263cdc..a2b528e 100644 --- a/bob_party/src/screens/Chat.tsx +++ b/bob_party/src/screens/Chat.tsx @@ -3,6 +3,7 @@ import { StyleSheet, View, Text, Alert, Pressable, Image} from 'react-native' import React from 'react'; import { Skin } from '../core/skin'; import { TopBar } from '../components/TopBar'; +import { BotBar } from '../components/BotBar'; const avatar = require('../../assets/Icons/BobClassic.png'); const skinTest= new Skin("Bob",require('../../assets/Icons/BobClassic.png')); @@ -22,7 +23,7 @@ function Chat(props: { navigation: any; }) { rightIcon={engrenage} styleIcon={styles.engrenage} nav={navigation} styleTitle={styles.titre} styleHeader={styles.header} - /> + /> couille diff --git a/bob_party/src/screens/Home.tsx b/bob_party/src/screens/Home.tsx index 421e742..6f96cca 100644 --- a/bob_party/src/screens/Home.tsx +++ b/bob_party/src/screens/Home.tsx @@ -5,6 +5,7 @@ import { SkinComponent } from '../components/skinAvatar'; import { User } from '../core/user'; import { Skin } from '../core/skin'; import { TopBar } from '../components/TopBar'; +import { BotBar } from '../components/BotBar'; @@ -25,7 +26,9 @@ function Home(props: { navigation: any; }) { title="BOB PARTY" rightIcon={engrenage} styleIcon={styles.engrenage} - nav={navigation} styleTitle={styles.titre} styleHeader={styles.header} + nav={navigation} + styleTitle={styles.titre} + styleHeader={styles.header} />