Make sure info icon is always well pressable

This commit is contained in:
Julia Friesel committed 2019-05-25 07:09:36 +02:00
1 parent cef2e850d7
commit c6fd5e6db2
2 files changed
+6 -6

No files matched your search

@@ -83,8 +83,11 @@ export default class SymptomView extends Component {
}}
/>
<View flex={1}>
{ this.renderContent() }
<TouchableOpacity
onPress={() => this.setState({showInfo: true})}
onPress={() => {
this.setState({showInfo: true})
}}
style={styles.infoButtonSymptomView}
>
<FeatherIcon
@@ -93,7 +96,6 @@ export default class SymptomView extends Component {
style={iconStyles.symptomInfo}
/>
</TouchableOpacity>
{this.renderContent()}
{ this.state.showInfo &&
<InfoPopUp
symptom={this.symptomName}