Browse Source

fix(ios) disable QuickType bar on iOS15 when not using autocorrect

See:
https://reactnative.dev/blog/2021/09/01/preparing-your-app-for-iOS-15-and-android-12#quicktype-bar
master
Saúl Ibarra Corretgé 3 years ago
parent
commit
f63b161955

+ 1
- 0
react/features/authentication/components/native/LoginDialog.js View File

@@ -167,6 +167,7 @@ class LoginDialog extends Component<Props, State> {
167 167
                         onChangeText = { this._onUsernameChange }
168 168
                         placeholder = { 'user@domain.com' }
169 169
                         placeholderTextColor = { PLACEHOLDER_COLOR }
170
+                        spellCheck = { false }
170 171
                         style = { _dialogStyles.field }
171 172
                         underlineColorAndroid = { FIELD_UNDERLINE }
172 173
                         value = { this.state.username } />

+ 1
- 0
react/features/invite/components/add-people-dialog/native/AddPeopleDialog.js View File

@@ -200,6 +200,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<Props, State> {
200 200
                         }
201 201
                         placeholderTextColor = { ColorPalette.lightGrey }
202 202
                         ref = { this._setFieldRef }
203
+                        spellCheck = { false }
203 204
                         style = { styles.searchField }
204 205
                         value = { this.state.fieldValue } />
205 206
                     { this._renderClearButton() }

+ 3
- 0
react/features/settings/components/native/SettingsView.js View File

@@ -170,6 +170,7 @@ class SettingsView extends AbstractSettingsView<Props, State> {
170 170
                             mode = 'outlined'
171 171
                             onChangeText = { this._onChangeDisplayName }
172 172
                             placeholder = 'John Doe'
173
+                            spellCheck = { false }
173 174
                             style = { styles.textInputContainer }
174 175
                             textContentType = { 'name' } // iOS only
175 176
                             theme = {{
@@ -188,6 +189,7 @@ class SettingsView extends AbstractSettingsView<Props, State> {
188 189
                             mode = 'outlined'
189 190
                             onChangeText = { this._onChangeEmail }
190 191
                             placeholder = 'email@example.com'
192
+                            spellCheck = { false }
191 193
                             style = { styles.textInputContainer }
192 194
                             textContentType = { 'emailAddress' } // iOS only
193 195
                             theme = {{
@@ -212,6 +214,7 @@ class SettingsView extends AbstractSettingsView<Props, State> {
212 214
                             onBlur = { this._onBlurServerURL }
213 215
                             onChangeText = { this._onChangeServerURL }
214 216
                             placeholder = { this.props._serverURL }
217
+                            spellCheck = { false }
215 218
                             style = { styles.textInputContainer }
216 219
                             textContentType = { 'URL' } // iOS only
217 220
                             theme = {{

+ 1
- 0
react/features/welcome/components/WelcomePage.native.js View File

@@ -311,6 +311,7 @@ class WelcomePage extends AbstractWelcomePage {
311 311
                                 placeholder = { this.state.roomPlaceholder }
312 312
                                 placeholderTextColor = { PLACEHOLDER_TEXT_COLOR }
313 313
                                 returnKeyType = { 'go' }
314
+                                spellCheck = { false }
314 315
                                 style = { styles.textInput }
315 316
                                 underlineColorAndroid = 'transparent'
316 317
                                 value = { this.state.room } />

Loading…
Cancel
Save