-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHeader.js
More file actions
31 lines (29 loc) · 731 Bytes
/
Header.js
File metadata and controls
31 lines (29 loc) · 731 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
import React, { Component } from 'react'
import { Text, View, StyleSheet, TextInput } from 'react-native'
// import { TextInput } from 'react-native-gesture-handler';
export default class Header extends Component {
render() {
return (
<View style={styles.header}>
<TextInput
placeholder="Tarea:"
style={styles.txtTarea}
onChangeText={this.props.nombreTarea}
onSubmitEditing={this.props.agregarTarea}
value={this.props.limpiarTarea}
/>
</View>
)
}
}
const styles = StyleSheet.create({
header:{
flex:1,
backgroundColor:'#fff',
justifyContent:'center',
},
txtTarea:{
paddingHorizontal:16,
fontSize:24
},
});