-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Conversation
…-the-new-values]" warning
Base commit: d065b06 |
Base commit: d065b06 |
@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. |
There was a problem hiding this comment.
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
@lunaleaps merged this pull request in 9eb0881. |
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 eitherAndroidTextInputNativeComponent
orDeprecatedTextInputPropTypes.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.