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}>
|
||||
<AppText style={symptomNameStyle}>{t(symptom)}</AppText>
|
||||
{symptomDataToDisplay && (
|
||||
<AppText style={textStyle} numberOfLines={4}>
|
||||
<AppText style={textStyle} numberOfLines={3}>
|
||||
{symptomDataToDisplay}
|
||||
</AppText>
|
||||
)}
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
import React, { useState } from 'react'
|
||||
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 AppSwitch from '../common/app-switch'
|
||||
@@ -111,9 +117,12 @@ const SymptomEditView = ({ date, onClose, symptom, symptomData }) => {
|
||||
const noteText = symptom === 'note' ? data.value : data.note
|
||||
const inputProps = {
|
||||
multiline: true,
|
||||
numberOfLines: 3,
|
||||
scrollEnabled: false,
|
||||
style: styles.input,
|
||||
numberOfLines: Platform.OS === 'ios' ? null : 4, // only Android
|
||||
minHeight: Platform.OS === 'ios' ? styles.input.height : null,
|
||||
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',
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user