You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(types): cross platform autoComplete for TextInput (#36931)
Summary:
Since v0.71 the autoComplete prop on TextInput is available on iOS ([release notes](https://reactnative.dev/blog/2023/01/12/version-071#component-specific-behavior)). However, this change is not reflected in the types.
Original types PR here - DefinitelyTyped/DefinitelyTyped#65144 by chwallen
## Changelog:
[GENERAL] [FIXED] - Fix autoComplete type for TextInput
Pull Request resolved: #36931
Test Plan: Setting the autoComplete prop on TextInput to `nickname`, `organization`, `organization-title`, or `url` should not result in typescript errors.
Reviewed By: NickGerleman
Differential Revision: D45052350
Pulled By: javache
fbshipit-source-id: 40993833b4ed14f91e3bf3521a264ea93517a0c9
* Specifies autocomplete hints for the system, so it can provide autofill. On Android, the system will always attempt to offer autofill by using heuristics to identify the type of content.
284
-
* To disable autocomplete, set `autoComplete` to `off`.
285
-
*
286
-
* *Android Only*
287
-
*
288
-
* Possible values for `autoComplete` are:
289
-
*
290
-
* - `birthdate-day`
291
-
* - `birthdate-full`
292
-
* - `birthdate-month`
293
-
* - `birthdate-year`
294
-
* - `cc-csc`
295
-
* - `cc-exp`
296
-
* - `cc-exp-day`
297
-
* - `cc-exp-month`
298
-
* - `cc-exp-year`
299
-
* - `cc-number`
300
-
* - `email`
301
-
* - `gender`
302
-
* - `name`
303
-
* - `name-family`
304
-
* - `name-given`
305
-
* - `name-middle`
306
-
* - `name-middle-initial`
307
-
* - `name-prefix`
308
-
* - `name-suffix`
309
-
* - `password`
310
-
* - `password-new`
311
-
* - `postal-address`
312
-
* - `postal-address-country`
313
-
* - `postal-address-extended`
314
-
* - `postal-address-extended-postal-code`
315
-
* - `postal-address-locality`
316
-
* - `postal-address-region`
317
-
* - `postal-code`
318
-
* - `street-address`
319
-
* - `sms-otp`
320
-
* - `tel`
321
-
* - `tel-country-code`
322
-
* - `tel-national`
323
-
* - `tel-device`
324
-
* - `username`
325
-
* - `username-new`
326
-
* - `off`
327
-
*/
328
-
autoComplete?:
329
-
|'birthdate-day'
330
-
|'birthdate-full'
331
-
|'birthdate-month'
332
-
|'birthdate-year'
333
-
|'cc-csc'
334
-
|'cc-exp'
335
-
|'cc-exp-day'
336
-
|'cc-exp-month'
337
-
|'cc-exp-year'
338
-
|'cc-number'
339
-
|'email'
340
-
|'gender'
341
-
|'name'
342
-
|'name-family'
343
-
|'name-given'
344
-
|'name-middle'
345
-
|'name-middle-initial'
346
-
|'name-prefix'
347
-
|'name-suffix'
348
-
|'password'
349
-
|'password-new'
350
-
|'postal-address'
351
-
|'postal-address-country'
352
-
|'postal-address-extended'
353
-
|'postal-address-extended-postal-code'
354
-
|'postal-address-locality'
355
-
|'postal-address-region'
356
-
|'postal-code'
357
-
|'street-address'
358
-
|'sms-otp'
359
-
|'tel'
360
-
|'tel-country-code'
361
-
|'tel-national'
362
-
|'tel-device'
363
-
|'username'
364
-
|'username-new'
365
-
|'off'
366
-
|undefined;
367
-
368
282
/**
369
283
* When provided it will set the color of the cursor (or "caret") in the component.
370
284
* Unlike the behavior of `selectionColor` the cursor color will be set independently
0 commit comments