FIX: Ajout de la page SkinList

stub-api
Alban GUILHOT 3 years ago
parent 20707544fc
commit dffc719e96

@ -6,7 +6,7 @@ import { Skin } from '../core/skin';
import { TopBar } from '../components/TopBar'; import { TopBar } from '../components/TopBar';
import { BotBar } from '../components/BotBar'; import { BotBar } from '../components/BotBar';
const skinTest= new Skin("S0001", "Bob",require('../../assets/Icons/BobClassic.png')); const skinTest= new Skin("S0001", "Bob",require('../../assets/Icons/BobClassic.png'),100);
function Chat(props: { navigation: any; }) { function Chat(props: { navigation: any; }) {
const { navigation } = props const { navigation } = props

@ -2,7 +2,6 @@ import { StatusBar } from 'expo-status-bar'
import { StyleSheet, View, Text} from 'react-native' import { StyleSheet, View, Text} from 'react-native'
import React from 'react'; import React from 'react';
import stylesScreen from './style/screens.style' import stylesScreen from './style/screens.style'
import { Skin } from '../core/skin';
import { TopBar } from '../components/TopBar'; import { TopBar } from '../components/TopBar';
import { BotBar } from '../components/BotBar'; import { BotBar } from '../components/BotBar';
import { FlatList } from 'react-native-gesture-handler'; import { FlatList } from 'react-native-gesture-handler';
@ -19,12 +18,6 @@ function Profile(props: { navigation: any; }) {
nav={navigation} nav={navigation}
/> />
<View style={styles.body}> <View style={styles.body}>
<FlatList
data={tabSkinApp}
numColumns={2}
columnWrapperStyle={{ flex: 1, justifyContent: "space-around"}}
keyExtractor={item =>item.getSkinName()}
renderItem={({item}) => <SkinComponent skin={item} state='profile'/>} />
</View> </View>
<BotBar <BotBar
nav={navigation} nav={navigation}

@ -0,0 +1,44 @@
import { StatusBar } from 'expo-status-bar'
import { StyleSheet, View, Text} from 'react-native'
import React from 'react';
import stylesScreen from './style/screens.style'
import { Skin } from '../core/skin';
import { TopBar } from '../components/TopBar';
import { BotBar } from '../components/BotBar';
import { FlatList } from 'react-native-gesture-handler';
import { SkinComponent } from '../components/Skin';
import tabSkinApp from '../constSkin';
function SkinList(props: { navigation: any; }) {
const { navigation } = props
return (
<View style={stylesScreen.container}>
<TopBar
skin={tabSkinApp[0]}
nav={navigation}
/>
<View style={styles.body}>
<FlatList
data={tabSkinApp}
numColumns={2}
columnWrapperStyle={{ flex: 1, justifyContent: "space-around"}}
keyExtractor={item =>item.getSkinName()}
renderItem={({item}) => <SkinComponent skin={item} state='profile'/>} />
</View>
<BotBar
nav={navigation}
/>
</View>
);
}
const styles = StyleSheet.create({
body: {
flex: 1,
flexDirection: 'column',
width: '100%',
},
});
export default SkinList
Loading…
Cancel
Save