-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTarea.js
More file actions
37 lines (35 loc) · 890 Bytes
/
Tarea.js
File metadata and controls
37 lines (35 loc) · 890 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
import React, { Component } from 'react';
import { Text, View, StyleSheet,TouchableOpacity } from 'react-native';
import { Ionicons } from '@expo/vector-icons';
export default class Tarea extends Component {
render() {
return (
<View style={styles.estilotexto}>
<Text style={styles.texto}> {this.props.nombre} </Text>
<TouchableOpacity
onPress={()=>{this.props.eliminar(this.props.id)}}
>
<Ionicons
name="md-trash"
size={24}
color="gray"
/>
</TouchableOpacity>
</View>
)
}
}
const styles = StyleSheet.create({
texto:{
fontSize:24,
paddingHorizontal:11,
paddingRight:10,
color:"#000"
},
estilotexto:{
flex:1,
flexDirection:'row',
justifyContent:'space-between',
alignItems:'center'
}
})