|
|
@ -1,34 +1,41 @@
|
|
|
|
import { StatusBar } from 'expo-status-bar'
|
|
|
|
import { StatusBar } from 'expo-status-bar'
|
|
|
|
import { StyleSheet, View, Text, Alert, Pressable, Image} from 'react-native'
|
|
|
|
import { StyleSheet, View, Text, Alert, Pressable, Image} from 'react-native'
|
|
|
|
import React from 'react';
|
|
|
|
import React, { Children } from 'react';
|
|
|
|
import { SkinComponent } from '../components/skinAvatar';
|
|
|
|
import { SkinComponent } from '../components/skinAvatar';
|
|
|
|
import { User } from '../core/user';
|
|
|
|
import { User } from '../core/user';
|
|
|
|
import { Skin } from '../core/skin';
|
|
|
|
import { Skin } from '../core/skin';
|
|
|
|
|
|
|
|
import { TopBar } from '../components/TopBar';
|
|
|
|
|
|
|
|
import { BotBar } from '../components/BotBar';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const avatar = require('../../assets/Icons/BobClassic.png');
|
|
|
|
const avatar = require('../../assets/Icons/BobClassic.png');
|
|
|
|
|
|
|
|
let tabSkin:Skin[];
|
|
|
|
const skinTest= new Skin("Bob",require('../../assets/Icons/BobClassic.png'));
|
|
|
|
const skinTest= new Skin("Bob",require('../../assets/Icons/BobClassic.png'));
|
|
|
|
|
|
|
|
const skinTest2= new Skin("wesh",require('../../assets/BobsSkins/BobBlue.png'));
|
|
|
|
|
|
|
|
tabSkin=[skinTest];
|
|
|
|
|
|
|
|
tabSkin.push(skinTest2);
|
|
|
|
|
|
|
|
const UserActu=new User("14", "leBg", "ouioui", "grand", "la", 12222, 123324, skinTest, tabSkin);
|
|
|
|
const engrenage = require('../../assets/Icons/UnSelected/Cogs.png');
|
|
|
|
const engrenage = require('../../assets/Icons/UnSelected/Cogs.png');
|
|
|
|
const gamepad = require('../../assets/Icons/Selected/SGamepad.png');
|
|
|
|
const gamepad = require('../../assets/Icons/Selected/SGamepad.png');
|
|
|
|
const message = require('../../assets/Icons/UnSelected/Chat.png');
|
|
|
|
const message = require('../../assets/Icons/UnSelected/Chat.png');
|
|
|
|
const store = require('../../assets/Icons/UnSelected/Store.png');
|
|
|
|
const store = require('../../assets/Icons/UnSelected/Store.png');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function Home(props: { navigation: any; }) {
|
|
|
|
function Home(props: { navigation: any; }) {
|
|
|
|
const { navigation } = props
|
|
|
|
const { navigation } = props
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<View style={styles.container}>
|
|
|
|
<View style={styles.container}>
|
|
|
|
<View style={styles.header}>
|
|
|
|
<TopBar
|
|
|
|
<Pressable onPress={() => navigation.navigate('Profile')}>
|
|
|
|
skin={skinTest}
|
|
|
|
<SkinComponent skin={skinTest} children={styles.avatar} />
|
|
|
|
styleAvatar={styles.avatar}
|
|
|
|
</Pressable>
|
|
|
|
title="BOB PARTY"
|
|
|
|
<Text style={styles.titre}>BOB PARTY</Text>
|
|
|
|
rightIcon={engrenage}
|
|
|
|
<Pressable onPress={() => navigation.navigate('Settings')}>
|
|
|
|
styleIcon={styles.engrenage}
|
|
|
|
<Image
|
|
|
|
nav={navigation}
|
|
|
|
style={styles.engrenage}
|
|
|
|
styleTitle={styles.titre}
|
|
|
|
source={engrenage}
|
|
|
|
styleHeader={styles.header}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</Pressable>
|
|
|
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
<View style={styles.body}>
|
|
|
|
<View style={styles.body}>
|
|
|
|
<Button
|
|
|
|
<Button
|
|
|
|
title='Jouer Seul'
|
|
|
|
title='Jouer Seul'
|
|
|
@ -39,26 +46,14 @@ function Home(props: { navigation: any; }) {
|
|
|
|
onPress={() => Alert.alert('On Joue avec les potos')}
|
|
|
|
onPress={() => Alert.alert('On Joue avec les potos')}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</View>
|
|
|
|
</View>
|
|
|
|
<View style={styles.footer}>
|
|
|
|
<BotBar
|
|
|
|
<Pressable onPress={() => navigation.navigate('Chat')}>
|
|
|
|
messages={message}
|
|
|
|
<Image
|
|
|
|
games={gamepad}
|
|
|
|
style={styles.iconFooter}
|
|
|
|
shop={store}
|
|
|
|
source={message}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</Pressable>
|
|
|
|
|
|
|
|
<Pressable >
|
|
|
|
|
|
|
|
<Image
|
|
|
|
|
|
|
|
style={styles.iconFooter}
|
|
|
|
style={styles.iconFooter}
|
|
|
|
source={gamepad}
|
|
|
|
nav={navigation}
|
|
|
|
/>
|
|
|
|
styleBar={styles.footer}
|
|
|
|
</Pressable>
|
|
|
|
|
|
|
|
<Pressable onPress={() => navigation.navigate('Store')}>
|
|
|
|
|
|
|
|
<Image
|
|
|
|
|
|
|
|
style={styles.iconStore}
|
|
|
|
|
|
|
|
source={store}
|
|
|
|
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</Pressable>
|
|
|
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
</View>
|
|
|
|
</View>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|