Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(android): Updated TextInput prop types to accomodate for new autoComplete values #32575

Closed
wants to merge 1 commit into from

Conversation

TheWirv
Copy link
Contributor

@TheWirv TheWirv commented Nov 10, 2021

Summary

This fixes the "Failed prop type: Invalid prop autoComplete of value [any-of-the-new-values]" warning, as mentioned in #32557.

This commit introduced new HintConstants for autofill, but added those only to TextInput.js and forgot to add them (and the new docs' description) to either AndroidTextInputNativeComponent or DeprecatedTextInputPropTypes.js. I know, the latter has clearly been deprecated, but until it is actually being removed, it shouldn't throw warnings like that.

Changelog

[Android] [Fixed] - Updated TextInput prop types to accomodate for new autoComplete values

Test Plan

There is no warning after these changes.

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Nov 10, 2021
@react-native-bot react-native-bot added Bug Platform: Android Android applications. labels Nov 10, 2021
@analysis-bot
Copy link

analysis-bot commented Nov 10, 2021

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: d065b06
Branch: main

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,477,737 +0
android hermes armeabi-v7a 7,774,989 +0
android hermes x86 8,946,880 +0
android hermes x86_64 8,893,803 +0
android jsc arm64-v8a 9,791,782 +0
android jsc armeabi-v7a 8,752,501 +0
android jsc x86 9,740,597 +0
android jsc x86_64 10,341,468 +0

Base commit: d065b06
Branch: main

@facebook-github-bot
Copy link
Contributor

@lunaleaps has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@@ -41,56 +41,128 @@ module.exports = {
'characters',
]): React$PropType$Primitive<'none' | 'sentences' | 'words' | 'characters'>),
/**
* Determines which content to suggest on auto complete, e.g.`username`.
* To disable auto complete, use `off`.
* 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.
Copy link
Contributor

Choose a reason for hiding this comment

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

Rephrasing @yungsters 's internal comment:
You may want to make a PR for the deprecated prop-types package

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Nov 11, 2021
@facebook-github-bot
Copy link
Contributor

@lunaleaps merged this pull request in 9eb0881.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 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. Platform: Android Android applications. 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.

5 participants