Extract navigation arrow and give it more padding

This commit is contained in:
Julia Friesel
2018-11-16 16:01:53 +01:00
parent d9123584c3
commit 3aacff6f83
5 changed files with 54 additions and 33 deletions
+5 -7
View File
@@ -3,21 +3,19 @@ import {
View,
Text} from 'react-native'
import styles, { iconStyles } from '../../styles'
import Icon from 'react-native-vector-icons/Entypo'
import FeatherIcon from 'react-native-vector-icons/Feather'
import NavigationArrow from './navigation-arrow'
export default function SymptomViewHeader(props) {
return (
<View style={[styles.header, styles.headerSymptom]}>
<View style={[styles.header, styles.headerCycleDay, styles.headerSymptom]}>
<View
style={styles.accentCircle}
left={props.middle - styles.accentCircle.width / 2}
/>
<Icon
name='chevron-thin-left'
{...iconStyles.navigationArrow}
onPress={() => props.goBack()}
<NavigationArrow
direction='left'
{...props}
/>
<View>
<Text style={styles.dateHeader}>