Refactors the header

This commit is contained in:
Sofiya Tepikin
2019-09-14 12:39:30 +02:00
parent 20595c6c3a
commit 5d436630d3
15 changed files with 175 additions and 195 deletions
+26
View File
@@ -0,0 +1,26 @@
import React from 'react'
import { TouchableOpacity } from 'react-native'
import PropTypes from 'prop-types'
import Icon from 'react-native-vector-icons/AntDesign'
import styles, { iconStyles } from '../../styles'
export default function DeleteIcon({ handleDelete }) {
return (
<TouchableOpacity
onPress={handleDelete}
style={styles.headerDeleteButton}
>
<Icon
name="delete"
{...iconStyles.symptomHeaderIcons}
/>
</TouchableOpacity>
)
}
DeleteIcon.propTypes = {
handleDelete: PropTypes.func,
}