-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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: Add displayName to ActivityIndicator #22417
Fix: Add displayName to ActivityIndicator #22417
Conversation
…ying 'Component' instead of 'ActivityIndicator'
Thanks for the fix! As you mentioned there aren't any tests that caught this. Would you like to try adding a simple jest test for ActivityIndicator that uses a snapshot test that would keep this problem from happening again? |
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.
@TheSavior I added a basic Snapshot for ActivityIndicator that should catch regressions on this! |
Awesome, thanks! |
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.
Michael Blanchard merged commit 53da585 into |
Summary: Similar to #21950, this adds displayName to `ActivityIndicator`, so it displays the correct component name in snapshots instead of `Component`. Fixes #21937 (a little bit more than it was already fixed). Pull Request resolved: #22417 Differential Revision: D13205376 Pulled By: TheSavior fbshipit-source-id: 21e71d4980d159a1f33d32d83346b48257ec21d4
Summary: Similar to #21950, this adds displayName to `ActivityIndicator`, so it displays the correct component name in snapshots instead of `Component`. Fixes #21937 (a little bit more than it was already fixed). Pull Request resolved: #22417 Differential Revision: D13205376 Pulled By: TheSavior fbshipit-source-id: 21e71d4980d159a1f33d32d83346b48257ec21d4
Summary: Similar to facebook#21950, this adds displayName to `ActivityIndicator`, so it displays the correct component name in snapshots instead of `Component`. Fixes facebook#21937 (a little bit more than it was already fixed). Pull Request resolved: facebook#22417 Differential Revision: D13205376 Pulled By: TheSavior fbshipit-source-id: 21e71d4980d159a1f33d32d83346b48257ec21d4
Summary:
Similar to #21950, this adds displayName to
ActivityIndicator
, so it displays the correct component name in snapshots instead ofComponent
.Fixes #21937 (a little bit more than it was already fixed).
Test Plan:
yarn test - ActivityIndicator's - ActivityIndicator-test.js.snap should Show
Changelog/Release Notes:
[General] [Fixed] - Add displayName to ActivityIndicator for snapshots