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…
Reference in new issue