You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BOB_PARTY/bob_party/src/screens/Home.tsx

54 lines
1.5 KiB

import { StatusBar } from 'expo-status-bar'
import { StyleSheet, View, ImageSourcePropType} from 'react-native'
import React from 'react';
import stylesScreen from './style/screens.style'
import { User } from '../core/user';
import { Skin } from '../core/skin';
import { TopBar } from '../components/TopBar';
import { BotBar } from '../components/BotBar';
import { Conversation } from '../core/conversation';
import { ButtonGameChoice } from '../components/ButtonGameChoice';
import tabSkinApp from '../const';
const avatar = require('../../assets/Icons/BobClassic.png');
let tabConv:Conversation[]=[];
const UserActu=new User("14", "leBg", "ouioui", "grand", new Date(2022,12,12), 12222, 123324, tabSkinApp[0], tabSkinApp, tabConv);
function Home(props: { navigation: any; }) {
const { navigation } = props
return (
<View style={stylesScreen.container}>
<TopBar
skin={UserActu.getCurrentSkin()}
nav={navigation}
/>
<View style={styles.body}>
<ButtonGameChoice
title='Jouer Seul'
onPress={() => navigation.navigate('GameChoice')}
/>
<ButtonGameChoice
title='Défier mes amis'
onPress={() => navigation.navigate('GameChoice')}
/>
</View>
<BotBar
nav={navigation}
state='Home'
/>
</View>
);
}
const styles = StyleSheet.create({
body: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
width: '70%',
},
});
export default Home