-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Fix prop overrides of TouchableWithoutFeedback #23966
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
Conversation
Child props were being overridden by <Touchable> props even when the <Touchable> props were undefined.
analysis-bot
left a comment
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.
Code analysis results:
flowfound some issues.
| } | ||
|
|
||
| const overrides = {}; | ||
| for (const prop of OVERRIDE_PROPS) { |
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.
Cannot get this.props[prop] because property accessibilityIgnoresInvertColors is missing in propTypes of React component [1].
cpojer
left a comment
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.
Looks good.
facebook-github-bot
left a comment
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.
@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
Ah, thanks for the patch. I was just about to get back to you about that :D |
facebook-github-bot
left a comment
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.
@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
This pull request was successfully merged by @aleclarson in 68825f9. When will my fix make it into a release? | Upcoming Releases |
Summary: Child props were being overridden by `<Touchable>` props even when the `<Touchable>` props were undefined. [General] [Fixed] - Prevent prop override by TouchableWithoutFeedback when undefined Pull Request resolved: #23966 Differential Revision: D14502918 Pulled By: cpojer fbshipit-source-id: 614ee43bbb6f062a98bd9318693807320979a016
Summary
Child props were being overridden by
<Touchable>props even when the<Touchable>props were undefined.Changelog
[General] [Fixed] - Prevent prop override by TouchableWithoutFeedback when undefined
Test Plan
None yet