From 1c95ff34883a1489f1b4147075ef3fe09dd96a5c Mon Sep 17 00:00:00 2001 From: emelko <ml.kochsiek@mailbox.org> Date: Fri, 31 Aug 2018 19:49:15 +0200 Subject: [PATCH] Adding autofocus to note when there is nothing entered yet --- components/cycle-day/symptoms/note.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/cycle-day/symptoms/note.js b/components/cycle-day/symptoms/note.js index 40ce6b59..3e36441f 100644 --- a/components/cycle-day/symptoms/note.js +++ b/components/cycle-day/symptoms/note.js @@ -27,6 +27,7 @@ export default class Note extends Component { <ScrollView> <View style={styles.symptomViewRow}> <TextInput + autoFocus={!this.state.currentValue} multiline={true} placeholder="Enter" onChangeText={(val) => { @@ -50,4 +51,4 @@ export default class Note extends Component { </View> ) } -} \ No newline at end of file +} -- GitLab