SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

Android autofill: bump to 1.3.0 and add extended hints (#56105)

Summary:
This change expands Android `TextInput` autofill support by aligning React Native with newer AndroidX autofill APIs and exposing additional `autoComplete` values backed by official `androidx.autofill.HintConstants`.

What changed:
- Bumped AndroidX Autofill dependency from `1.1.0` to `1.3.0`.
- Added Android native mappings in `ReactTextInputManager` for:
  - `2fa-app-otp`
  - `email-otp`
  - `wifi-password`
  - `upi-vpa`
  - `postal-address-unit`
  - `postal-address-dependent-locality`
  - `promo-code`
  - `flight-number`
  - `flight-confirmation-code`
  - `gift-card-number`
  - `gift-card-pin`
  - `loyalty-account-number`

- Updated public `TextInput` type/docs surfaces (`Flow`, `TypeScript`, and Android native component props) to include the new Android values.
- Added Android unit test coverage for the extended hint mappings.
- Added RNTester Android examples for the new `autoComplete` values.

## Changelog:

[ANDROID] [ADDED] - Add extended Android `TextInput` `autoComplete` autofill hint support and bump `androidx.autofill` to `1.3.0`.

Pull Request resolved: https://github.com/facebook/react-native/pull/56105

Test Plan:
Ran Android unit tests locally:

```bash
./gradlew :packages:react-native:ReactAndroid:testDebugUnitTest --tests com.facebook.react.views.textinput.ReactTextInputPropertyTest
```

Run `rn-tester`
<img width="473" height="864" alt="image" src="https://github.com/user-attachments/assets/21b779d9-b485-47e9-809b-d9917e12b472" />

Reviewed By: cortinico, javache

Differential Revision: D96952637

Pulled By: NickGerleman

fbshipit-source-id: e01c99bfa4411219a73fb586b873b1f86ea28122
R
Radek Czemerys committed
ac598aff2b388d4fac9f42a2e2cef73542d2531d
Parent: b1e2e5a
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com> on 3/23/2026, 9:49:30 PM