Adding autofocus to note when there is nothing entered yet
This commit is contained in:
@@ -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 {
|
|||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user