浏览代码

ios: specify the correct keyboard type and content

This way autocomplete and keyboards work correctly.
master
Dominik Wagner 5 年前
父节点
当前提交
48a58f8dae
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6
    2
      react/features/settings/components/native/SettingsView.js

+ 6
- 2
react/features/settings/components/native/SettingsView.js 查看文件

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

正在加载...
取消
保存