-
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
feat: add displayName to touchables #29531
feat: add displayName to touchables #29531
Conversation
Hi @brunohkbx! Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
Base commit: 811ccec |
Base commit: a15a46c |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
@brunohkbx seems like |
@CoryWritesCode will update this one as well. |
60d2a63
to
dbdef0c
Compare
62fe590
to
030ca58
Compare
@yungsters would you mind reviewing this? Thanks in advance. |
@yungsters has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
This looks good. Thanks for the contribution and tagging me! Sorry for taking so long to get to reviewing this. |
TouchableHighlight, TouchableOpacity, TouchableWithoutFeedback, TouchableNativeFeedback
030ca58
to
5b54e1e
Compare
Thanks @yungsters. I just fixed the conflicts. |
@yungsters merged this pull request in c4e40b8. |
Summary
Since TouchableHighlight and TouchableOpacity are being exported using
forwardRef
, it's messing up jest's snapshots and some matchers.This commit 4b935ae fixed this for components being mocked on setup.js. However, these Touchables aren't being mocked.
It resolves #27721
Changelog
[General] [Added] - Add displayName to TouchableHighlight, TouchableOpacity, TouchableNativeFeedback, TouchableWithoutFeedback
Test Plan
Check the new snapshots.