Skip to content
Snippets Groups Projects
Commit 1c95ff34 authored by emelko's avatar emelko
Browse files

Adding autofocus to note when there is nothing entered yet

parent 895057e2
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,7 @@ export default class Note extends Component { ...@@ -27,6 +27,7 @@ export default class Note extends Component {
<ScrollView> <ScrollView>
<View style={styles.symptomViewRow}> <View style={styles.symptomViewRow}>
<TextInput <TextInput
autoFocus={!this.state.currentValue}
multiline={true} multiline={true}
placeholder="Enter" placeholder="Enter"
onChangeText={(val) => { onChangeText={(val) => {
...@@ -50,4 +51,4 @@ export default class Note extends Component { ...@@ -50,4 +51,4 @@ export default class Note extends Component {
</View> </View>
) )
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment