Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f4fa2a7c57 | |||
| 4de32e3801 | |||
| f741562496 | |||
| a23278b9b2 | |||
| f170bf608b | |||
| 1979005ca0 | |||
| 8badf0cabb | |||
| 216a6b73ee | |||
| 90ad1cb12f | |||
| 010cabcefb |
@@ -64,7 +64,7 @@ const SymptomBox = ({
|
|||||||
<View style={styles.textContainer}>
|
<View style={styles.textContainer}>
|
||||||
<AppText style={symptomNameStyle}>{t(symptom)}</AppText>
|
<AppText style={symptomNameStyle}>{t(symptom)}</AppText>
|
||||||
{symptomDataToDisplay && (
|
{symptomDataToDisplay && (
|
||||||
<AppText style={textStyle} numberOfLines={4}>
|
<AppText style={textStyle} numberOfLines={3}>
|
||||||
{symptomDataToDisplay}
|
{symptomDataToDisplay}
|
||||||
</AppText>
|
</AppText>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
import React, { useState } from 'react'
|
import React, { useState } from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import { ScrollView, StyleSheet, View } from 'react-native'
|
import {
|
||||||
|
Dimensions,
|
||||||
|
Platform,
|
||||||
|
ScrollView,
|
||||||
|
StyleSheet,
|
||||||
|
View,
|
||||||
|
} from 'react-native'
|
||||||
|
|
||||||
import AppModal from '../common/app-modal'
|
import AppModal from '../common/app-modal'
|
||||||
import AppSwitch from '../common/app-switch'
|
import AppSwitch from '../common/app-switch'
|
||||||
@@ -111,9 +117,12 @@ const SymptomEditView = ({ date, onClose, symptom, symptomData }) => {
|
|||||||
const noteText = symptom === 'note' ? data.value : data.note
|
const noteText = symptom === 'note' ? data.value : data.note
|
||||||
const inputProps = {
|
const inputProps = {
|
||||||
multiline: true,
|
multiline: true,
|
||||||
numberOfLines: 3,
|
numberOfLines: Platform.OS === 'ios' ? null : 4, // only Android
|
||||||
scrollEnabled: false,
|
minHeight: Platform.OS === 'ios' ? styles.input.height : null,
|
||||||
style: styles.input,
|
maxHeight:
|
||||||
|
Platform.OS === 'ios' ? Dimensions.get('window').height * 0.4 : null,
|
||||||
|
style: symptom === 'note' ? null : styles.input, // overwrites previous 2 lines to fix note space in symptoms
|
||||||
|
scrollEnabled: true,
|
||||||
textAlignVertical: 'top',
|
textAlignVertical: 'top',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user