-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.js
More file actions
43 lines (37 loc) · 937 Bytes
/
header.js
File metadata and controls
43 lines (37 loc) · 937 Bytes
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
import React, { Component } from 'react'
import { StyleSheet, Text, View, TextInput, } from 'react-native';
class Header extends Component {
render() {
return (
<View style={styles.header}>
<TextInput value={this.props.value}
onChangeText={this.props.onChange}
onSubmitEditing={this.props.onAddItem}
placeholder="What you wanna do, lets add it here."
blurOnSubmit={false}
returnKeyType="done"
style={styles.input}
/>
</View>
);
}
}
const styles = StyleSheet.create({
header: {
paddingHorizontal: 16,
flexDirection: "row",
justifyContent: "space-around",
alignItems: "center",
backgroundColor: "#f5f5f5"
}, input: {
flex: 1,
height: 50
},
userinfo_container: {
paddingTop: 2,
flexDirection: "row",
justifyContent: "space-around",
alignItems: "center"
}
})
export default Header;