Skip to content

Make LayoutConformance component headers for-frameworks (#58929) - #58929

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

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

Conversation

@coado

@coado coado commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

Move LayoutConformanceComponentDescriptor.h, LayoutConformanceProps.h and LayoutConformanceShadowNode.h from the public tier of the C++ stable API to the for-frameworks tier, and remove them from the <React/View.h> umbrella.

These headers implement the experimental LayoutConformance core component. Native component authors do not use them, but a platform that registers React Native's core components does: YogaLayoutableShadowNode::resolveErrata checks for LayoutConformanceShadowNode with a dynamic_cast to choose the Yoga errata, so a platform has to register React Native's own descriptor for the component to have any effect. That makes them framework-author API rather than private headers. The LayoutConformance enum and its conversions stay public in primitives.h and conversions.h.

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D123895702

@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 7, 2026
@facebook-github-tools facebook-github-tools Bot added p: Software Mansion Partner: Software Mansion Partner p: Facebook Partner: Facebook labels Oct 7, 2026
@meta-codesync

meta-codesync Bot commented Oct 7, 2026

Copy link
Copy Markdown

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

coado added a commit to coado/react-native that referenced this pull request Oct 8, 2026
Summary:

Move `LayoutConformanceComponentDescriptor.h`, `LayoutConformanceProps.h` and `LayoutConformanceShadowNode.h` from the public tier of the C++ stable API to the for-frameworks tier, and remove them from the `<React/View.h>` umbrella.

These headers implement the experimental `LayoutConformance` core component. Native component authors do not use them, but a platform that registers React Native's core components does: `YogaLayoutableShadowNode::resolveErrata` checks for `LayoutConformanceShadowNode` with a `dynamic_cast` to choose the Yoga errata, so a platform has to register React Native's own descriptor for the component to have any effect. That makes them framework-author API rather than private headers. The `LayoutConformance` enum and its conversions stay public in `primitives.h` and `conversions.h`.

Changelog: [Internal]

Differential Revision: D123895702
coado added a commit to coado/react-native that referenced this pull request Oct 8, 2026
Summary:

Move `LayoutConformanceComponentDescriptor.h`, `LayoutConformanceProps.h` and `LayoutConformanceShadowNode.h` from the public tier of the C++ stable API to the for-frameworks tier, and remove them from the `<React/View.h>` umbrella.

These headers implement the experimental `LayoutConformance` core component. Native component authors do not use them, but a platform that registers React Native's core components does: `YogaLayoutableShadowNode::resolveErrata` checks for `LayoutConformanceShadowNode` with a `dynamic_cast` to choose the Yoga errata, so a platform has to register React Native's own descriptor for the component to have any effect. That makes them framework-author API rather than private headers. The `LayoutConformance` enum and its conversions stay public in `primitives.h` and `conversions.h`.

Changelog: [Internal]

Differential Revision: D123895702
coado added a commit to coado/react-native that referenced this pull request Oct 9, 2026
Summary:
Pull Request resolved: react#58929

Move `LayoutConformanceComponentDescriptor.h`, `LayoutConformanceProps.h` and `LayoutConformanceShadowNode.h` from the public tier of the C++ stable API to the for-frameworks tier, and remove them from the `<React/View.h>` umbrella.

These headers implement the experimental `LayoutConformance` core component. Native component authors do not use them, but a platform that registers React Native's core components does: `YogaLayoutableShadowNode::resolveErrata` checks for `LayoutConformanceShadowNode` with a `dynamic_cast` to choose the Yoga errata, so a platform has to register React Native's own descriptor for the component to have any effect. That makes them framework-author API rather than private headers. The `LayoutConformance` enum and its conversions stay public in `primitives.h` and `conversions.h`.

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D123895702
@coado
coado force-pushed the export-D123895702 branch from e0a3933 to 732a423 Compare October 9, 2026 09:47
@meta-codesync meta-codesync Bot changed the title Make LayoutConformance component headers for-frameworks Make LayoutConformance component headers for-frameworks (#58929) Oct 9, 2026
@meta-codesync meta-codesync Bot changed the title Make LayoutConformance component headers for-frameworks (#58929) Make LayoutConformance component headers for-frameworks Oct 12, 2026
@coado
coado force-pushed the export-D123895702 branch from 732a423 to 12c21ba Compare October 12, 2026 13:56
Summary:

Move `LayoutConformanceComponentDescriptor.h`, `LayoutConformanceProps.h` and `LayoutConformanceShadowNode.h` from the public tier of the C++ stable API to the for-frameworks tier, and remove them from the `<React/View.h>` umbrella.

These headers implement the experimental `LayoutConformance` core component. Native component authors do not use them, but a platform that registers React Native's core components does: `YogaLayoutableShadowNode::resolveErrata` checks for `LayoutConformanceShadowNode` with a `dynamic_cast` to choose the Yoga errata, so a platform has to register React Native's own descriptor for the component to have any effect. That makes them framework-author API rather than private headers. The `LayoutConformance` enum and its conversions stay public in `primitives.h` and `conversions.h`.

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D123895702
@meta-codesync meta-codesync Bot changed the title Make LayoutConformance component headers for-frameworks Make LayoutConformance component headers for-frameworks (#58929) Oct 12, 2026
@coado
coado force-pushed the export-D123895702 branch from 12c21ba to a5d17c4 Compare October 12, 2026 14:00
@meta-codesync meta-codesync Bot closed this in e21665d Oct 12, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Oct 12, 2026
@meta-codesync

meta-codesync Bot commented Oct 12, 2026

Copy link
Copy Markdown

This pull request has been merged in e21665d.

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