ADD: Ajout du fichier style du skinComponent

stub-api
Alban GUILHOT 3 years ago
parent dc60b66842
commit 790e12d656

@ -1,13 +0,0 @@
import { FC} from "react"
import {Image, ImageStyle, View } from "react-native"
import { Skin } from "../core/Skin"
import React from "react"
export const SkinComponent : FC<{skin: Skin, children: ImageStyle}> = ({skin, children}) => {
return (
<View>
<Image source={ skin.getSkinSource()} style={children}/>
</View>
)
}

@ -0,0 +1,27 @@
import { StyleSheet } from "react-native";
export default StyleSheet.create({
icon: {
width: 50,
height: 50,
borderRadius: 50,
},
imageWrapper: {
height: 135,
width: '40%',
flexDirection: "column",
margin: 10,
},
imageSkin : {
borderRadius: 15,
width: '100%',
flex:1
},
nomSkin :{
textAlign: 'center',
fontSize: 25,
fontFamily: 'Helvetica',
fontWeight: 'bold',
color: 'white',
},
});
Loading…
Cancel
Save