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} />