Adding autofocus to note when there is nothing entered yet
This commit is contained in:
1 parent
895057e2f6
commit
1c95ff3488
1 file changed
+2
-1
@@ -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>
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user