Skip to content

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

Closed
radko93 wants to merge 3 commits intofacebook:mainfrom
radko93:feat/android-autofill-update
Closed

Android autofill: bump to 1.3.0 and add extended hints#56105
radko93 wants to merge 3 commits intofacebook:mainfrom
radko93:feat/android-autofill-update

Conversation

@radko93
Copy link
Contributor

@radko93 radko93 commented Mar 16, 2026

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.

Test Plan:

Ran Android unit tests locally:

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

Run rn-tester
image

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 16, 2026
@facebook-github-tools facebook-github-tools bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Mar 16, 2026
@github-actions
Copy link

Warning

JavaScript API change detected

This PR commits an update to ReactNativeApi.d.ts, indicating a change to React Native's public JavaScript API.

  • Please include a clear changelog message.
  • This change will be subject to additional review.

This change was flagged as: POTENTIALLY_BREAKING

@meta-codesync
Copy link

meta-codesync bot commented Mar 17, 2026

@NickGerleman has imported this pull request. If you are a Meta employee, you can view this in D96952637.

Copy link
Contributor

@cortinico cortinico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@radko93
Copy link
Contributor Author

radko93 commented Mar 22, 2026

@cortinico do I need to do anything else (like rebasing) for this to go trough?

@meta-codesync meta-codesync bot closed this in ac598af Mar 23, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 23, 2026

@NickGerleman merged this pull request in ac598af.

@facebook-github-tools facebook-github-tools bot added the Merged This PR has been merged. label Mar 23, 2026
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @radko93 in ac598af

When will my fix make it into a release? | How to file a pick request?

@radko93 radko93 deleted the feat/android-autofill-update branch March 24, 2026 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants