Try out moving it to body
This commit is contained in:
@@ -1,9 +1,13 @@
|
|||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import { BackHandler, View, Alert } from 'react-native'
|
import {
|
||||||
|
BackHandler, View, Alert, TouchableOpacity
|
||||||
|
} from 'react-native'
|
||||||
import { saveSymptom } from '../../../db'
|
import { saveSymptom } from '../../../db'
|
||||||
import Header from '../../header/symptom-view'
|
import Header from '../../header/symptom-view'
|
||||||
import { headerTitles } from '../../../i18n/en/labels'
|
import { headerTitles } from '../../../i18n/en/labels'
|
||||||
import { sharedDialogs } from '../../../i18n/en/cycle-day'
|
import { sharedDialogs } from '../../../i18n/en/cycle-day'
|
||||||
|
import FeatherIcon from 'react-native-vector-icons/Entypo'
|
||||||
|
import styles, { iconStyles } from '../../../styles'
|
||||||
|
|
||||||
export default class SymptomView extends Component {
|
export default class SymptomView extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
@@ -66,6 +70,16 @@ export default class SymptomView extends Component {
|
|||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
<TouchableOpacity
|
||||||
|
onPress={() => {}}
|
||||||
|
style={styles.infoButtonSymptomView}
|
||||||
|
>
|
||||||
|
<FeatherIcon
|
||||||
|
name="info-with-circle"
|
||||||
|
{...iconStyles.infoInSymptomView}
|
||||||
|
style={styles.symptomInfoIcon}
|
||||||
|
/>
|
||||||
|
</TouchableOpacity>
|
||||||
{this.renderContent()}
|
{this.renderContent()}
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -32,12 +32,14 @@ export default function SymptomViewHeader(props) {
|
|||||||
</View >
|
</View >
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
onPress={props.deleteEntry}
|
onPress={props.deleteEntry}
|
||||||
style={[styles.infoButton, {opacity: props.deleteIconActive ? 1 : 0}]}
|
style={[
|
||||||
|
styles.headerDeleteButton,
|
||||||
|
{opacity: props.deleteIconActive ? 1 : 0}
|
||||||
|
]}
|
||||||
disabled={!props.deleteIconActive}
|
disabled={!props.deleteIconActive}
|
||||||
>
|
>
|
||||||
<Icon
|
<Icon
|
||||||
name="delete"
|
name="delete"
|
||||||
style={styles.symptomDeleteIcon}
|
|
||||||
{...iconStyles.symptomHeaderIcons}
|
{...iconStyles.symptomHeaderIcons}
|
||||||
/>
|
/>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
|
|||||||
+17
-8
@@ -176,10 +176,6 @@ export default StyleSheet.create({
|
|||||||
fontFamily: textFontBold,
|
fontFamily: textFontBold,
|
||||||
marginTop: 10
|
marginTop: 10
|
||||||
},
|
},
|
||||||
symptomDeleteIcon: {
|
|
||||||
marginRight: 20,
|
|
||||||
marginLeft: 20
|
|
||||||
},
|
|
||||||
symptomBoxImage: {
|
symptomBoxImage: {
|
||||||
width: 50,
|
width: 50,
|
||||||
height: 50
|
height: 50
|
||||||
@@ -438,8 +434,15 @@ export default StyleSheet.create({
|
|||||||
marginTop: 20,
|
marginTop: 20,
|
||||||
color: 'grey'
|
color: 'grey'
|
||||||
},
|
},
|
||||||
infoButton: {
|
headerDeleteButton: {
|
||||||
paddingVertical: 20
|
paddingHorizontal: 20,
|
||||||
|
paddingVertical: 20,
|
||||||
|
alignItems: 'flex-end'
|
||||||
|
},
|
||||||
|
infoButtonSymptomView: {
|
||||||
|
paddingHorizontal: 20,
|
||||||
|
paddingVertical: 10,
|
||||||
|
alignItems: 'flex-end'
|
||||||
},
|
},
|
||||||
licensePage: {
|
licensePage: {
|
||||||
paddingVertical: 20,
|
paddingVertical: 20,
|
||||||
@@ -479,7 +482,13 @@ export const iconStyles = {
|
|||||||
color: colorInActive,
|
color: colorInActive,
|
||||||
},
|
},
|
||||||
infoInHeading: {
|
infoInHeading: {
|
||||||
marginRight: 5,
|
marginRight: 5
|
||||||
color: 'black'
|
},
|
||||||
|
infoInSymptomView: {
|
||||||
|
size: 20
|
||||||
|
},
|
||||||
|
hiddenIcon: {
|
||||||
|
size: 20,
|
||||||
|
display: 'none'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user