-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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 View/Text displayName #21950
Fix View/Text displayName #21950
Conversation
Could we also restore the |
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.
TheSavior is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@rajivshah3 merged commit 7a914fc into |
Summary: Adds the displayName prop to `View` and `Text` components. Because these now use `React.forwardRef`, they were showing as `Component` instead of their actual names. Thanks to ljharb for helping to pinpoint the source of the issue! Fixes #21937 Pull Request resolved: #21950 Differential Revision: D12827060 Pulled By: TheSavior fbshipit-source-id: d812cae14d53ad821ab5873e737db63ad1a989e3
Summary: Adds the displayName prop to `View` and `Text` components. Because these now use `React.forwardRef`, they were showing as `Component` instead of their actual names. Thanks to ljharb for helping to pinpoint the source of the issue! Fixes facebook#21937 Pull Request resolved: facebook#21950 Differential Revision: D12827060 Pulled By: TheSavior fbshipit-source-id: d812cae14d53ad821ab5873e737db63ad1a989e3
Adds the displayName prop to
View
andText
components. Because these now useReact.forwardRef
, they were showing asComponent
instead of their actual names.Thanks to @ljharb for helping to pinpoint the source of the issue!
Fixes #21937
Test Plan:
Snapshot test for
YellowBoxCategory
should passRelease Notes:
[GENERAL] [BUGFIX] [View] - Add displayName prop to
View
components[GENERAL] [BUGFIX] [Text] - Add displayName prop to
Text
components