-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMockUI.js
71 lines (65 loc) · 1.76 KB
/
MockUI.js
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
/* 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 (
<View style={styles.root}>
<LinearGradient
colors={['#f40076', '#df98fa']}
start={{x: 0, y: 0}}
end={{x: 1, y: 1}}
style={[{height: 100, width: 150}, styles.item]}
/>
<LinearGradient
colors={['#fd6966', '#fad6a6']}
start={{x: 0, y: 0}}
end={{x: 1, y: 1}}
style={[{height: 100, 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: 70, width: '40%', flexGrow: 1}, styles.item]}
/>
<LinearGradient
colors={['#ff5858', '#ffc8c8']}
start={{x: 0, y: 0}}
end={{x: 1, y: 1}}
style={[styles.item, {height: 70, width: 100, borderRadius: 5}]}
/>
</View>
);
}
const styles = StyleSheet.create({
root: {
width: '100%',
paddingHorizontal: 30,
paddingVertical: 30,
display: 'flex',
flexDirection: 'row',
flexWrap: 'wrap',
justifyContent: 'center',
opacity: 0.8,
},
item: {
borderRadius: 5,
margin: 10,
opacity: 0.9,
},
});
export default MockUI;