Merge branch 'typescript' of https://codefirst.iut.uca.fr/git/BOB_PARTEAM/BOB_PARTY into typescript
commit
ff0194f365
@ -1,13 +0,0 @@
|
||||
import { FC, ReactNode } from "react"
|
||||
import { Button, Image, Text, View } from "react-native"
|
||||
import { Skin } from "../core/Skin"
|
||||
|
||||
/*
|
||||
export const SkinComponent : FC<{skin: Skin, children: ReactNode}> = ({skin, children}) => {
|
||||
|
||||
return <View>
|
||||
<Image source={{uri: skin.source}}/>
|
||||
<Text>{t}</Text>
|
||||
</View>
|
||||
}
|
||||
*/
|
@ -0,0 +1,15 @@
|
||||
import { FC, ReactNode } from "react"
|
||||
import { Button, Image, ImageStyle, Text, View } from "react-native"
|
||||
import { Skin } from "../core/Skin"
|
||||
import React from "react"
|
||||
|
||||
export const SkinComponent : FC<{skin: Skin, children: ImageStyle, childrenTest: ReactNode}> = ({skin, children, childrenTest}) => {
|
||||
|
||||
|
||||
return (
|
||||
<View>
|
||||
<Image source={{uri: skin.Source}} style={children}/>
|
||||
{childrenTest}
|
||||
</View>
|
||||
)
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
export class Skin{
|
||||
private Name: string;
|
||||
private Source: string;
|
||||
Source: string;
|
||||
|
||||
constructor(name: string, source:string){
|
||||
this.Name=name;
|
Loading…
Reference in new issue