[RN] Don't auto-correct any field in settings

This commit is contained in:
Saúl Ibarra Corretgé 2018-03-27 10:09:27 +02:00 committed by virtuacoplenny
parent 4783b22018
commit 45078fe6b2
1 changed files with 3 additions and 0 deletions

View File

@ -151,6 +151,7 @@ class SettingsView extends AbstractSettingsView {
fieldSeparator = { true } fieldSeparator = { true }
i18nLabel = 'settingsView.displayName'> i18nLabel = 'settingsView.displayName'>
<TextInput <TextInput
autoCorrect = { false }
onChangeText = { this._onChangeDisplayName } onChangeText = { this._onChangeDisplayName }
placeholder = 'John Doe' placeholder = 'John Doe'
value = { _profile.displayName } /> value = { _profile.displayName } />
@ -158,6 +159,7 @@ class SettingsView extends AbstractSettingsView {
<FormRow i18nLabel = 'settingsView.email'> <FormRow i18nLabel = 'settingsView.email'>
<TextInput <TextInput
autoCapitalize = 'none' autoCapitalize = 'none'
autoCorrect = { false }
keyboardType = { 'email-address' } keyboardType = { 'email-address' }
onChangeText = { this._onChangeEmail } onChangeText = { this._onChangeEmail }
placeholder = 'email@example.com' placeholder = 'email@example.com'
@ -170,6 +172,7 @@ class SettingsView extends AbstractSettingsView {
i18nLabel = 'settingsView.serverURL'> i18nLabel = 'settingsView.serverURL'>
<TextInput <TextInput
autoCapitalize = 'none' autoCapitalize = 'none'
autoCorrect = { false }
onBlur = { this._onBlurServerURL } onBlur = { this._onBlurServerURL }
onChangeText = { this._onChangeServerURL } onChangeText = { this._onChangeServerURL }
placeholder = { this.props._serverURL } placeholder = { this.props._serverURL }