-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBoxScreen.js
72 lines (65 loc) · 1.51 KB
/
BoxScreen.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
72
import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
const BoxScreen = () => {
return (
<View style={styles.parentStyle}>
<View style={styles.view1}></View>
<View style={styles.view2Parent}>
<View style={styles.view2}></View>
</View>
<View style={styles.view3}></View>
</View>
)
}
const styles=StyleSheet.create({
parentStyle:{
borderWidth: 3,
borderColor: 'black',
flexDirection: 'row',
// alignItems: 'flex-end'
justifyContent: 'space-between',
height: 200,
//alignItems: 'center'
},
textOneStyle:{
borderWidth: 3,
borderColor: 'red',
//margin: 20
},
textTwoStyle:{
borderWidth: 3,
borderColor: 'red',
//margin: 20
fontSize: 18,
...StyleSheet.absoluteFillObject
//alignSelf: 'flex-end'
//position: 'absolute'
},
textThreeStyle:{
borderWidth: 3,
borderColor: 'red',
//margin: 20
},
view1:{
height: 50,
width: 50,
backgroundColor: 'red'
},
view2:{
height: 50,
width: 50,
backgroundColor: 'green',
//top:50
alignSelf: 'flex-end'
},
view3:{
height: 50,
width: 50,
backgroundColor: 'purple'
},
view2Parent:{
height: 100,
justifyContent: 'flex-end'
}
})
export default BoxScreen;