Skip to content

Classify componentNameByReactViewName.h as for-frameworks - #59031

Closed
coado wants to merge 1 commit into
react:mainfrom
coado:export-D124970095
Closed

coado wants to merge 1 commit into
react:mainfrom
coado:export-D124970095

Conversation

@coado

@coado coado commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Summary:
Move componentNameByReactViewName.h from the private tier back to the for-frameworks tier.

The function maps legacy view names to Fabric component names. React Native itself only uses it inside the component registry and the iOS component view factory, and it is transitional, but libraries that integrate with the renderer call it directly; for example, an animation library uses it to resolve the component name for a view in its native module. Under RN_STRICT_API a private header is a hard error with no opt-out, so those libraries could not build at all. As for-frameworks, they get a warning that RN_ALLOW_FRAMEWORKS silences, and the function stays out of the public API.

Changelog: [Internal]

Differential Revision: D124970095

Summary:
Move `componentNameByReactViewName.h` from the private tier back to the for-frameworks tier.

The function maps legacy view names to Fabric component names. React Native itself only uses it inside the component registry and the iOS component view factory, and it is transitional, but libraries that integrate with the renderer call it directly; for example, an animation library uses it to resolve the component name for a view in its native module. Under `RN_STRICT_API` a private header is a hard error with no opt-out, so those libraries could not build at all. As for-frameworks, they get a warning that `RN_ALLOW_FRAMEWORKS` silences, and the function stays out of the public API.


Changelog: [Internal]

Differential Revision: D124970095
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 13, 2026
@facebook-github-tools facebook-github-tools Bot added p: Software Mansion Partner: Software Mansion Partner labels Oct 13, 2026
@meta-codesync

meta-codesync Bot commented Oct 13, 2026

Copy link
Copy Markdown

@coado has exported this pull request. If you are a Meta employee, you can view the originating Diff in D124970095.

@facebook-github-tools facebook-github-tools Bot added the p: Facebook Partner: Facebook label Oct 13, 2026
@meta-codesync meta-codesync Bot closed this in d6d816c Oct 14, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Oct 14, 2026
@meta-codesync

meta-codesync Bot commented Oct 14, 2026

Copy link
Copy Markdown

This pull request has been merged in d6d816c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant