-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
46 lines (42 loc) · 942 Bytes
/
App.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
import React from 'react';
import UselessTextInput from './UselessTextInput'
import { StyleSheet, Text, View, Dimensions } from 'react-native';
var { height } = Dimensions.get('window');
var box_count = 3;
var box_height = height / box_count;
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<View style={[styles.box, styles.box1]}>
</View>
<View style={[styles.box, styles.box2]}>
<UselessTextInput/>
</View>
<View style={[styles.box, styles.box3]}></View>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
flexDirection: 'column'
},
//header
box1: {
flex: 1,
backgroundColor: '#2196F3'
},
//content
box2: {
flex: 10,
backgroundColor: '#8BC34A',
justifyContent: 'center'
},
//footer
box3: {
flex: .5,
backgroundColor: '#e3aa1a'
}
});