[IMPROVEMENT] Keyboard and content type on login (#1403)
This commit is contained in:
parent
2f1708b0c3
commit
e5791215a4
|
@ -215,6 +215,8 @@ class LoginView extends React.Component {
|
||||||
onChangeText={value => this.setState({ user: value })}
|
onChangeText={value => this.setState({ user: value })}
|
||||||
onSubmitEditing={() => { this.passwordInput.focus(); }}
|
onSubmitEditing={() => { this.passwordInput.focus(); }}
|
||||||
testID='login-view-email'
|
testID='login-view-email'
|
||||||
|
textContentType='username'
|
||||||
|
autoCompleteType='username'
|
||||||
/>
|
/>
|
||||||
<TextInput
|
<TextInput
|
||||||
inputRef={(e) => { this.passwordInput = e; }}
|
inputRef={(e) => { this.passwordInput = e; }}
|
||||||
|
@ -226,6 +228,8 @@ class LoginView extends React.Component {
|
||||||
onChangeText={value => this.setState({ password: value })}
|
onChangeText={value => this.setState({ password: value })}
|
||||||
testID='login-view-password'
|
testID='login-view-password'
|
||||||
containerStyle={sharedStyles.inputLastChild}
|
containerStyle={sharedStyles.inputLastChild}
|
||||||
|
textContentType='password'
|
||||||
|
autoCompleteType='password'
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
title={I18n.t('Login')}
|
title={I18n.t('Login')}
|
||||||
|
|
|
@ -270,6 +270,8 @@ class NewServerView extends React.Component {
|
||||||
testID='new-server-view-input'
|
testID='new-server-view-input'
|
||||||
onSubmitEditing={this.submit}
|
onSubmitEditing={this.submit}
|
||||||
clearButtonMode='while-editing'
|
clearButtonMode='while-editing'
|
||||||
|
keyboardType='url'
|
||||||
|
textContentType='URL'
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
title={I18n.t('Connect')}
|
title={I18n.t('Connect')}
|
||||||
|
|
Loading…
Reference in New Issue