Compare commits

...

12 Commits

Author SHA1 Message Date
tina f4fa2a7c57 Reverts changes to app-modal and changes input window for notes on iOS 2024-10-01 21:24:30 +02:00
tina 4de32e3801 Merge branch 'main' into '650-long-text-in-note-hides-behind-keyboard-1.2402.16'
# Conflicts:
#   android/app/build.gradle
#   ios/drip/Info.plist
#   package.json
2024-10-01 15:20:11 +00:00
Lynn ae5f31015b Update README.md for M1 installations, fixed typo 2024-09-18 10:02:11 +00:00
Lynn c7104f7758 Update README.md for M1 installations 2024-09-18 10:00:33 +00:00
bl00dymarie f741562496 Merge branch 'main' into '650-long-text-in-note-hides-behind-keyboard-1.2402.16'
# Conflicts:
#   android/app/build.gradle
#   package.json
2024-02-19 16:02:40 +00:00
bl00dymarie a23278b9b2 Update version to 1.2402.16 2024-02-16 17:45:34 +01:00
bl00dymarie f170bf608b Differentiate keyboardavoiding behavior based on ios/android 2024-02-16 17:43:38 +01:00
bl00dymarie 1979005ca0 Allow more lines for "other" under mood, pain, sex 2024-02-16 17:43:32 +01:00
bl00dymarie 8badf0cabb Limit lines to 3 for symptom day boxes 2024-02-16 17:43:26 +01:00
bl00dymarie 216a6b73ee Add multiline to notes in edit view 2024-02-16 17:43:20 +01:00
bl00dymarie 90ad1cb12f Add KeyboardAvoidingView for visible TextInput 2024-02-15 17:38:08 +01:00
bl00dymarie 010cabcefb Allow scrolling in note text field 2024-02-15 17:37:15 +01:00
3 changed files with 45 additions and 6 deletions
+31 -1
View File
@@ -34,13 +34,31 @@ or clone it with HTTPS
git clone https://gitlab.com/bloodyhealth/drip.git git clone https://gitlab.com/bloodyhealth/drip.git
### 2. Node & yarn version ### 2. Node version
Make sure you are running Node 14 and classic yarn (v.1). It's easiest to switch Node versions using `nvm`, here's how to install NVM: https://github.com/nvm-sh/nvm#installing-and-updating. After installing nvm close the terminal and open it again to be able to use nvm. Make sure you are running Node 14 and classic yarn (v.1). It's easiest to switch Node versions using `nvm`, here's how to install NVM: https://github.com/nvm-sh/nvm#installing-and-updating. After installing nvm close the terminal and open it again to be able to use nvm.
Once you have nvm running you can install node 14: Once you have nvm running you can install node 14:
nvm install v14.19.3 nvm install v14.19.3
#### On Apple Silicon M1
NodeJS 14 does not compile on the M1 architecture, so it has to be installed through Rosetta: https://devzilla.io/using-nodejs-14-with-mac-silicon-m1 .
To activate Rosetta and switch to intel emulation run:
arch -x86_64 zsh
Run
arch
again to verify that it returns "i386".
Now install node 14:
nvm install v14.19.3
### 3. Yarn version
use npm to install yarn: use npm to install yarn:
npm install --global yarn npm install --global yarn
@@ -127,6 +145,18 @@ iii. If you are building the app with XCode make sure you are running this as we
### Troubleshooting ### Troubleshooting
#### [MacOS M1] Flipper problems
If a bug in the currently used Flipper version prevents building the project, comment out the respective line in the podfile, like so:
#use_flipper!()
Run
pod install
from the ios directory again to reload the dependencies.
#### [MacOS] Java problems #### [MacOS] Java problems
Make sure that you have Java 1.8 by running `java -version`. Make sure that you have Java 1.8 by running `java -version`.
+1 -1
View File
@@ -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>
)} )}
+13 -4
View File
@@ -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',
} }