Projekt

Obecné

Profil

Stáhnout (926 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
import { Center, HStack, Image, Text, VStack } from "native-base"
2

    
3
interface ItemPreviewProps {
4
    caption: string
5
    title: string
6
    name?: string
7
    image?: string
8
}
9

    
10
const ItemPreview = (props: ItemPreviewProps) => {
11

    
12
    return (
13
        <>
14

    
15
            <HStack
16
                space={ 2 }
17
                flex={ 1 }
18
                alignItems={ "start" }
19
            >
20
                <Image
21
                    source={ {uri: `http:/147.228.173.159/static/images/${ props.image ? props.image : "thumb-Rel-78.png" }`} }
22
                    size={ "sm" }
23
                    alt={ props.image ? props.image : "thumb-Rel-78.png" }
24
                />
25
                <VStack>
26
                    <Text>{ props.name }</Text>
27
                    <Text>{ props.caption }</Text>
28
                    <Text>{ props.title }</Text>
29
                </VStack>
30
            </HStack>
31
        </>
32
    )
33
}
34

    
35
export default ItemPreview
(1-1/2)