-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMockUI.js
More file actions
114 lines (107 loc) · 2.83 KB
/
MockUI.js
File metadata and controls
114 lines (107 loc) · 2.83 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/* eslint-disable react-native/no-inline-styles */
import React from 'react';
import {View, StyleSheet, Text} from 'react-native';
import LinearGradient from 'react-native-linear-gradient';
import Animated from 'react-native-reanimated';
function MockUI() {
return (
<Animated.View style={styles.root}>
<LinearGradient
colors={['#f40076', '#df98fa']}
start={{x: 0, y: 0}}
end={{x: 1, y: 1}}
style={[{height: 150, width: 150}, styles.item]}
/>
<LinearGradient
colors={['#fd6966', '#fad6a6']}
start={{x: 0, y: 0}}
end={{x: 1, y: 1}}
style={[{height: 150, width: 150}, styles.item]}
/>
<LinearGradient
colors={['#df98fa', '#9055ff']}
start={{x: 0, y: 0}}
end={{x: 1, y: 1}}
style={[{height: 50, width: 50}, styles.item]}
/>
<LinearGradient
colors={['#737dfe', '#ffcac9']}
start={{x: 0, y: 0}}
end={{x: 1, y: 1}}
style={[{height: 50, width: 200, flexGrow: 1}, styles.item]}
/>
<LinearGradient
colors={['#737dfe', '#ffcac9']}
start={{x: 0, y: 0}}
end={{x: 1, y: 1}}
style={[{height: 100, width: '40%', flexGrow: 1}, styles.item]}
/>
<LinearGradient
colors={['#ff5858', '#ffc8c8']}
start={{x: 0, y: 0}}
end={{x: 1, y: 1}}
style={[styles.item, {height: 100, width: 100, borderRadius: 5}]}
/>
<LinearGradient
colors={['#ebf4f5', '#b5c6e0']}
start={{x: 0, y: 0}}
end={{x: 1, y: 1}}
style={[
{
height: 50,
width: 200,
flexGrow: 1,
marginVertical: 5,
marginTop: 30,
},
styles.item,
]}
/>
<LinearGradient
colors={['#ebf4f5', '#b5c6e0']}
start={{x: 0, y: 0}}
end={{x: 1, y: 1}}
style={[
{height: 50, width: 200, flexGrow: 1, marginVertical: 5},
styles.item,
]}
/>
<LinearGradient
colors={['#ebf4f5', '#b5c6e0']}
start={{x: 0, y: 0}}
end={{x: 1, y: 1}}
style={[
{height: 50, width: 200, flexGrow: 1, marginVertical: 5},
styles.item,
]}
/>
<LinearGradient
colors={['#ebf4f5', '#b5c6e0']}
start={{x: 0, y: 0}}
end={{x: 1, y: 1}}
style={[
{height: 50, width: 200, flexGrow: 1, marginVertical: 5},
styles.item,
]}
/>
</Animated.View>
);
}
const styles = StyleSheet.create({
root: {
height: '100%',
width: '100%',
paddingHorizontal: 30,
paddingVertical: 30,
display: 'flex',
flexDirection: 'row',
flexWrap: 'wrap',
justifyContent: 'center',
},
item: {
borderRadius: 5,
margin: 10,
opacity: 0.9,
},
});
export default MockUI;