Autofocus new password field

This commit is contained in:
Julia Friesel
2018-09-14 19:03:18 +02:00
parent 1c5c6a804b
commit 8e8f6fcf6c
+2
View File
@@ -59,6 +59,7 @@ export default class PasswordSetting extends Component {
<View> <View>
<TextInput <TextInput
style={styles.passwordField} style={styles.passwordField}
autoFocus={true}
onChangeText={val => { onChangeText={val => {
this.setState({ this.setState({
changedPassword: val changedPassword: val
@@ -102,6 +103,7 @@ export default class PasswordSetting extends Component {
<View> <View>
<TextInput <TextInput
style={styles.passwordField} style={styles.passwordField}
autoFocus={true}
onChangeText={val => { onChangeText={val => {
this.setState({ this.setState({
newPassword: val newPassword: val