[IMPROVEMENT] Keyboard and content type on login (#1403)

This commit is contained in:
Diego Mello 2019-11-19 16:58:39 -03:00 committed by GitHub
parent 2f1708b0c3
commit e5791215a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -215,6 +215,8 @@ class LoginView extends React.Component {
onChangeText={value => this.setState({ user: value })}
onSubmitEditing={() => { this.passwordInput.focus(); }}
testID='login-view-email'
textContentType='username'
autoCompleteType='username'
/>
<TextInput
inputRef={(e) => { this.passwordInput = e; }}
@ -226,6 +228,8 @@ class LoginView extends React.Component {
onChangeText={value => this.setState({ password: value })}
testID='login-view-password'
containerStyle={sharedStyles.inputLastChild}
textContentType='password'
autoCompleteType='password'
/>
<Button
title={I18n.t('Login')}

View File

@ -270,6 +270,8 @@ class NewServerView extends React.Component {
testID='new-server-view-input'
onSubmitEditing={this.submit}
clearButtonMode='while-editing'
keyboardType='url'
textContentType='URL'
/>
<Button
title={I18n.t('Connect')}