-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDay48.tsx
55 lines (53 loc) · 999 Bytes
/
Day48.tsx
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
import React, {useEffect} from 'react';
import {useState} from 'react';
import {
Text, //First letter Capital
View,
Button,
StyleSheet,
TextInput,
FlatList,
ScrollView,
KeyboardAvoidingView,
} 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>
<View style={styles.box2}></View>
<View style={styles.box3}></View>
</View>
);
};
//flex : maintains always the ratio
const styles = StyleSheet.create({
main: {
flex: 1,
},
box1: {
flex: 1,
backgroundColor: 'orange',
},
box2: {
flex: 2,
backgroundColor: 'pink',
},
box3: {
flex: 1,
backgroundColor: 'yellow',
},
InnerBox1: {
flex: 1,
backgroundColor: 'lightblue',
margin: 10,
},
InnerBox2: {
flex: 1,
backgroundColor: 'lightblue',
margin: 10,
},
});
export default App;