Repository navigation
Expand file tree
/
Copy pathPlaceHolderExample.js
More file actions
88 lines (86 loc) · 2.63 KB
/
Copy pathPlaceHolderExample.js
File metadata and controls
88 lines (86 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import React,{Component} from 'react';
import {StyleSheet,View,Text} from 'react-native';
import PropTypes from 'prop-types';
import Placeholder from '../Placeholder'
import Card from '../Card'
import ListItem from '../ListItem'
import * as Color from '../styles/colors'
export default class PlaceHolderExample extends Component{
render(){
return(<View>
<Card style={{container:{paddingVertical:5,paddingHorizontal:10}}}>
<ListItem centerElement='ImageContent'/>
<Placeholder.ImageContent
size={60}
animate="fade"
lineNumber={4}
lineSpacing={5}
lastLineWidth="30%"
onReady={false}
>
<Text>Placeholder has finished :D</Text>
</Placeholder.ImageContent>
</Card>
<Card style={{container:{paddingVertical:5,paddingHorizontal:10}}}>
<ListItem centerElement='Line'/>
<Placeholder.Line
width="77%"
textSize={14}
onReady={false}
>
<Text>Placeholder finished</Text>
</Placeholder.Line>
</Card>
<Card style={{container:{paddingVertical:5,paddingHorizontal:10}}}>
<ListItem centerElement='Media'/>
<Placeholder.Media
size={70}
hasRadius
onReady={false}
>
<Text>Placeholder finished</Text>
</Placeholder.Media>
</Card>
<Card style={{container:{paddingVertical:5,paddingHorizontal:10}}}>
<ListItem centerElement='Paragraph'/>
<Placeholder.Paragraph
lineNumber={3}
textSize={16}
lineSpacing={5}
width="100%"
lastLineWidth="70%"
firstLineWidth="50%"
onReady={false}
>
<Text>Placeholder finished</Text>
</Placeholder.Paragraph>
</Card>
<Card style={{container:{paddingVertical:5,paddingHorizontal:10}}}>
<ListItem centerElement='MultiWords'/>
<Placeholder.MultiWords
words={[
{ color: Color.red500, width: '20%' },
{ color: Color.blue500, width: '40%' },
{ color: Color.green500, width: '20%' }
]}
textSize={14}
onReady={false}
>
<Text>Placeholder finished</Text>
</Placeholder.MultiWords>
</Card>
<Card style={{container:{paddingVertical:5,paddingHorizontal:10}}}>
<ListItem centerElement='Box'/>
<Placeholder.Box
height={56}
width={200}
color={Color.blue500}
radius={8}
onReady={false}
>
<Text>Placeholder finished</Text>
</Placeholder.Box>
</Card>
</View>)
}
}