Uh oh!
There was an error while loading. Please reload this page.
[Android][TextInput] Update types for autoComplete prop. - #25549
[Android][TextInput] Update types for autoComplete prop.#25549drtangible wants to merge 3 commits into
Conversation
1485feb to
b754ec0Compare
facebook-github-bot
left a comment
There was a problem hiding this comment.
@mdvacca has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Hey @drtangible, thanks for submitting your first RN PR! This is a great find! This change would be a breaking change for the TextInput component API which we should avoid if possible. There are two ways to do that:
The first option is ideal, but the second is a quick fix. To do the second option you can change TextInput here to be something like: consttextContainer=(<AndroidTextInput{...props}autoComplete={props.autoCompleteType}// .../>);This will keep the prop we use in JS as You can choose either route 👍 |
drtangible
commented
Jul 12, 2019
@rickhanlonii Sounds good! Pushed a change on the Android side, but can try to take a look this weekend about anything else that's required for native-side changes. |
mdvacca
left a comment
There was a problem hiding this comment.
Changes look good to me!
Thanks for working on this @drtangible
facebook-github-bot
left a comment
There was a problem hiding this comment.
@mdvacca is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
react-native-bot
commented
Jul 12, 2019
This pull request was successfully merged by @drtangible in daa6b0a. When will my fix make it into a release? | Upcoming Releases |
rickhanlonii
commented
Aug 14, 2020
@yungsters did you mean to re-open this? |
yungsters
commented
Aug 14, 2020
Whoah, what. No. |
Summary
I believe there's a mismatch between the type definitions and the expected prop in Android for
TextInput'sautoCompleteprop.autoComplete.autoCompleteType.autoCompleteType.Prop added here: 179d490
This change updates the JS types to match what Android is expecting (
autoComplete). Can update documentation if this is the approach we'd prefer (rather than updating Android to expectautoCompleteType).Changelog
[Javascript] [Fixed] - Update types for
TextInput'sautoCompleteprop.Test Plan
Before:
TextInput'sautoCompleteprop, see no type errors on JS side, and Android blows up with:After:
TextInput'sautoCompleteprop, see PropType warning forautoCompleteprop.