Преглед изворни кода

ios: specify the correct keyboard type and content

This way autocomplete and keyboards work correctly.
master
Dominik Wagner пре 5 година
родитељ
комит
48a58f8dae
No account linked to committer's email address
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6
    2
      react/features/settings/components/native/SettingsView.js

+ 6
- 2
react/features/settings/components/native/SettingsView.js Прегледај датотеку

@@ -160,6 +160,7 @@ class SettingsView extends AbstractSettingsView<Props, State> {
160 160
                             autoCorrect = { false }
161 161
                             onChangeText = { this._onChangeDisplayName }
162 162
                             placeholder = 'John Doe'
163
+                            textContentType = { 'name' } // iOS only
163 164
                             value = { displayName } />
164 165
                     </FormRow>
165 166
                     <FormRow
@@ -171,6 +172,7 @@ class SettingsView extends AbstractSettingsView<Props, State> {
171 172
                             keyboardType = { 'email-address' }
172 173
                             onChangeText = { this._onChangeEmail }
173 174
                             placeholder = 'email@example.com'
175
+                            textContentType = { 'emailAddress' } // iOS only
174 176
                             value = { email } />
175 177
                     </FormRow>
176 178
                     <FormSectionHeader
@@ -183,9 +185,11 @@ class SettingsView extends AbstractSettingsView<Props, State> {
183 185
                             autoCapitalize = 'none'
184 186
                             autoCorrect = { false }
185 187
                             editable = { this.props._serverURLChangeEnabled }
188
+                            keyboardType = { 'url' }
186 189
                             onBlur = { this._onBlurServerURL }
187 190
                             onChangeText = { this._onChangeServerURL }
188 191
                             placeholder = { this.props._serverURL }
192
+                            textContentType = { 'URL' } // iOS only
189 193
                             value = { serverURL } />
190 194
                     </FormRow>
191 195
                     <FormRow
@@ -205,12 +209,12 @@ class SettingsView extends AbstractSettingsView<Props, State> {
205 209
                     <FormRow
206 210
                         label = 'settingsView.version'>
207 211
                         <Text>
208
-                            { `${AppInfo.version} build ${AppInfo.buildNumber}` }
212
+                            {`${AppInfo.version} build ${AppInfo.buildNumber}`}
209 213
                         </Text>
210 214
                     </FormRow>
211 215
                     <FormSectionHeader
212 216
                         label = 'settingsView.advanced' />
213
-                    { this._renderAdvancedSettings() }
217
+                    {this._renderAdvancedSettings()}
214 218
                 </ScrollView>
215 219
             </JitsiModal>
216 220
         );

Loading…
Откажи
Сачувај