Skip to content

Make Image component implementation headers for-frameworks - #58875

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

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

Conversation

@coado

@coado coado commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Summary:
Lower ImageComponentDescriptor.h, ImageShadowNode.h, ImageProps.h, ImageState.h and ImageEventEmitter.h in react/renderer/components/image from public to "for frameworks". They implement the built-in <Image> component and are consumed by hosts that register core components and by platform image renderers, not by app code. This matches the tiering of the text, scrollview and root component modules.

conversions.h stays public and is now the only header in the <React/Image.h> umbrella: code generated for a component with an ImageSource prop includes <React/Image.h> and relies on its fromRawValue(..., ImageSource &) overload through convertRawProp.

Changelog: [Internal]

Differential Revision: D123593354

Summary:
Lower `ImageComponentDescriptor.h`, `ImageShadowNode.h`, `ImageProps.h`, `ImageState.h` and `ImageEventEmitter.h` in `react/renderer/components/image` from public to "for frameworks". They implement the built-in `<Image>` component and are consumed by hosts that register core components and by platform image renderers, not by app code. This matches the tiering of the `text`, `scrollview` and `root` component modules.

`conversions.h` stays public and is now the only header in the `<React/Image.h>` umbrella: code generated for a component with an `ImageSource` prop includes `<React/Image.h>` and relies on its `fromRawValue(..., ImageSource &)` overload through `convertRawProp`.

Changelog: [Internal]

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

meta-codesync Bot commented Oct 6, 2026

Copy link
Copy Markdown

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

@meta-codesync meta-codesync Bot closed this in bf1258e Oct 6, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Oct 6, 2026
@meta-codesync

meta-codesync Bot commented Oct 6, 2026

Copy link
Copy Markdown

This pull request has been merged in bf1258e.

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