ios: specify the correct keyboard type and content
This way autocomplete and keyboards work correctly.
This commit is contained in:
parent
eb1ef0fa9c
commit
48a58f8dae
|
@ -160,6 +160,7 @@ class SettingsView extends AbstractSettingsView<Props, State> {
|
|||
autoCorrect = { false }
|
||||
onChangeText = { this._onChangeDisplayName }
|
||||
placeholder = 'John Doe'
|
||||
textContentType = { 'name' } // iOS only
|
||||
value = { displayName } />
|
||||
</FormRow>
|
||||
<FormRow
|
||||
|
@ -171,6 +172,7 @@ class SettingsView extends AbstractSettingsView<Props, State> {
|
|||
keyboardType = { 'email-address' }
|
||||
onChangeText = { this._onChangeEmail }
|
||||
placeholder = 'email@example.com'
|
||||
textContentType = { 'emailAddress' } // iOS only
|
||||
value = { email } />
|
||||
</FormRow>
|
||||
<FormSectionHeader
|
||||
|
@ -183,9 +185,11 @@ class SettingsView extends AbstractSettingsView<Props, State> {
|
|||
autoCapitalize = 'none'
|
||||
autoCorrect = { false }
|
||||
editable = { this.props._serverURLChangeEnabled }
|
||||
keyboardType = { 'url' }
|
||||
onBlur = { this._onBlurServerURL }
|
||||
onChangeText = { this._onChangeServerURL }
|
||||
placeholder = { this.props._serverURL }
|
||||
textContentType = { 'URL' } // iOS only
|
||||
value = { serverURL } />
|
||||
</FormRow>
|
||||
<FormRow
|
||||
|
|
Loading…
Reference in New Issue