fix: View component does not have a displayName #52688
Open
+5
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
Hello, I work on Radon IDE I encountered an issue while adding support for react native 81, this PR solves it:
In #51023 @EvanBacon removed
displayName
filed fromView
component adding the following comment:Unfortunately the Fabric renderer uses the
displayName
property to generate the name of the component for the inspector functionality resulting and in absence of it generates a name that might be confusing to the end user:Problem is not specific to Radon and happens in chrome devtools as well:
This PR brings back the
displayName
property to fix that.Changelog:
[INTERNAL] [FIXED] - Bring back the displayName property to the View component
Test Plan:
View_withRef
after they are namedView