-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path28_flexbox_3_1_1_grid.js
52 lines (42 loc) · 971 Bytes
/
28_flexbox_3_1_1_grid.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
import React,{useEffect,useState} from 'react';
import { Button, Text, View, FlatList,SectionList,TextInput,StyleSheet } from 'react-native';
const App = () => {
return (
<View style={styles.main} >
<View style={styles.box1}>
<View style={styles.innerBox1} ></View>
<View style={styles.innerBox2} ></View>
<View style={styles.innerBox3} ></View>
</View>
<View style={styles.box2}></View>
<View style={styles.box3}></View>
</View>
);
}
const styles = StyleSheet.create({
main:{
flex:1,
},
box1:{
flex:2,backgroundColor:"red",flexDirection:"row"
},
box2:{
flex:1,backgroundColor:"green"
},
box3:{
flex:1,backgroundColor:"blue"
},
innerBox1:{
flex:1,backgroundColor:"skyblue",
margin:10
},
innerBox2:{
flex:1,backgroundColor:"pink",
margin:10
},
innerBox3:{
flex:1,backgroundColor:"yellow",
margin:10
}
})
export default App;