Skip to content

Move ImageSource debug helpers out of primitives.h (#58791) - #58791

Open
j-piasecki wants to merge 1 commit into
react:mainfrom
j-piasecki:export-D122761709
Open

j-piasecki wants to merge 1 commit into
react:mainfrom
j-piasecki:export-D122761709

Conversation

@j-piasecki

@j-piasecki j-piasecki commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

react/renderer/imagemanager/primitives.h is public and re-exported by <React/ImageManager.h>, but it included the private react/renderer/debug/debugStringConvertibleUtils.h. Under RN_STRICT_API, any consumer including the umbrella hit the private-header #error.

Move the bodies of ImageSource::getDebugProps and the two ImageSource::toString overloads into a new primitives.cpp, which includes the private header. The header keeps only the declarations; SharedDebugStringConvertibleList is already provided by <React/RendererDebug.h>.

Changelog: [Internal]

Differential Revision: D122761709

@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 1, 2026
@meta-codesync

meta-codesync Bot commented Oct 1, 2026

Copy link
Copy Markdown

@j-piasecki has exported this pull request. If you are a Meta employee, you can view the originating Diff in D122761709.

@facebook-github-tools facebook-github-tools Bot added p: Software Mansion Partner: Software Mansion Partner labels Oct 1, 2026
@facebook-github-tools facebook-github-tools Bot added the p: Facebook Partner: Facebook label Oct 1, 2026
Summary:

`react/renderer/imagemanager/primitives.h` is public and re-exported by `<React/ImageManager.h>`, but it included the private `react/renderer/debug/debugStringConvertibleUtils.h`. Under `RN_STRICT_API`, any consumer including the umbrella hit the private-header `#error`.

Move the bodies of `ImageSource::getDebugProps` and the two `ImageSource::toString` overloads into a new `primitives.cpp`, which includes the private header. The header keeps only the declarations; `SharedDebugStringConvertibleList` is already provided by `<React/RendererDebug.h>`.

Changelog: [Internal]

Differential Revision: D122761709
@meta-codesync meta-codesync Bot changed the title Move ImageSource debug helpers out of primitives.h Move ImageSource debug helpers out of primitives.h (#58791) Oct 2, 2026

This branch has not been deployed

No deployments
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. 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