ios: specify the correct keyboard type and content

This way autocomplete and keyboards work correctly.
This commit is contained in:
Dominik Wagner 2020-07-21 17:06:41 +02:00 committed by GitHub
parent eb1ef0fa9c
commit 48a58f8dae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -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
@ -205,12 +209,12 @@ class SettingsView extends AbstractSettingsView<Props, State> {
<FormRow
label = 'settingsView.version'>
<Text>
{ `${AppInfo.version} build ${AppInfo.buildNumber}` }
{`${AppInfo.version} build ${AppInfo.buildNumber}`}
</Text>
</FormRow>
<FormSectionHeader
label = 'settingsView.advanced' />
{ this._renderAdvancedSettings() }
{this._renderAdvancedSettings()}
</ScrollView>
</JitsiModal>
);