Conversation
|
@coado has exported this pull request. If you are a Meta employee, you can view the originating Diff in D122534476. |
coado
added a commit
to coado/react-native
that referenced
this pull request
Oct 1, 2026
Summary: Keep the Image component's exported headers self-contained and free of implementation-only dependencies. - Move the `ImageSource` and `ImageResizeMode` `fromRawValue`/`toString` implementations from `conversions.h` into a new `conversions.cpp`. The header now only declares them, so it no longer exports `glog/logging.h` and `react_native_expect.h`. Every consumer of `conversions.h` (Image props, text input props, and generated component props) already links the Image library in Buck, CocoaPods, and CMake. - Drop the unused Android-only `MapBuffer.h` and `MapBufferBuilder.h` includes from `ImageState.h`; nothing in the Image module uses MapBuffer. - Declare standard-library dependencies directly in the Image headers (`<memory>`, `<utility>`, `<optional>`, `<string>`, `<cstdint>`). Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D122534476
coado
force-pushed
the
export-D122534476
branch
from
October 1, 2026 08:33
2faef5e to
0dc4a59
Compare
coado
added a commit
to coado/react-native
that referenced
this pull request
Oct 1, 2026
Summary: Pull Request resolved: react#58760 Keep the Image component's exported headers self-contained and free of implementation-only dependencies. - Move the `ImageSource` and `ImageResizeMode` `fromRawValue`/`toString` implementations from `conversions.h` into a new `conversions.cpp`. The header now only declares them, so it no longer exports `glog/logging.h` and `react_native_expect.h`. Every consumer of `conversions.h` (Image props, text input props, and generated component props) already links the Image library in Buck, CocoaPods, and CMake. - Drop the unused Android-only `MapBuffer.h` and `MapBufferBuilder.h` includes from `ImageState.h`; nothing in the Image module uses MapBuffer. - Declare standard-library dependencies directly in the Image headers (`<memory>`, `<utility>`, `<optional>`, `<string>`, `<cstdint>`). Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D122534476
coado
force-pushed
the
export-D122534476
branch
from
October 1, 2026 08:36
0dc4a59 to
f13f1d4
Compare
coado
added a commit
to coado/react-native
that referenced
this pull request
Oct 1, 2026
Summary: Keep the Image component's exported headers self-contained and free of implementation-only dependencies. - Move the `ImageSource` and `ImageResizeMode` `fromRawValue`/`toString` implementations from `conversions.h` into a new `conversions.cpp`. The header now only declares them, so it no longer exports `glog/logging.h` and `react_native_expect.h`. Every consumer of `conversions.h` (Image props, text input props, and generated component props) already links the Image library in Buck, CocoaPods, and CMake. - Drop the unused Android-only `MapBuffer.h` and `MapBufferBuilder.h` includes from `ImageState.h`; nothing in the Image module uses MapBuffer. - Declare standard-library dependencies directly in the Image headers (`<memory>`, `<utility>`, `<optional>`, `<string>`, `<cstdint>`). Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D122534476
coado
force-pushed
the
export-D122534476
branch
from
October 1, 2026 10:58
f13f1d4 to
83416f5
Compare
coado
added a commit
to coado/react-native
that referenced
this pull request
Oct 1, 2026
Summary: Pull Request resolved: react#58760 Keep the Image component's exported headers self-contained and free of implementation-only dependencies. - Move the `ImageSource` and `ImageResizeMode` `fromRawValue`/`toString` implementations from `conversions.h` into a new `conversions.cpp`. The header now only declares them, so it no longer exports `glog/logging.h` and `react_native_expect.h`. Every consumer of `conversions.h` (Image props, text input props, and generated component props) already links the Image library in Buck, CocoaPods, and CMake. - Drop the unused Android-only `MapBuffer.h` and `MapBufferBuilder.h` includes from `ImageState.h`; nothing in the Image module uses MapBuffer. - Declare standard-library dependencies directly in the Image headers (`<memory>`, `<utility>`, `<optional>`, `<string>`, `<cstdint>`). Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D122534476
coado
force-pushed
the
export-D122534476
branch
from
October 1, 2026 11:02
83416f5 to
ffe5ea0
Compare
added 2 commits
October 1, 2026 08:28
Summary: Migrate React-Fabric attributedstring headers to consume stable Debug, FeatureFlags, CSS, Graphics, MapBuffer, RendererCore, Utils, and View umbrellas instead of guarded leaf headers. Add the direct Buck and CocoaPods dependencies required by those public imports. Avoid RendererDebug.h because its current utility-template export changes downstream overload lookup; RendererCore already provides the debug declaration types used by attributedstring. Changelog: [Internal] Differential Revision: D121793359
Summary: The public `react/renderer/imagemanager/primitives.h` header included the private `react/renderer/debug/debugStringConvertibleUtils.h` for the inline body of `ImageSource::getDebugProps()`. Because the include was unconditional, any strict consumer of `<React/ImageManager.h>` or `<React/Image.h>` (which reaches `primitives.h` through the Image event emitter) hit the private header guard and failed to compile. Include the public `DebugStringConvertible.h` and `flags.h` headers instead, which provide `SharedDebugStringConvertibleList` and `RN_DEBUG_STRING_CONVERTIBLE`, and keep only the `getDebugProps()` declaration in the header under the existing `RN_DEBUG_STRING_CONVERTIBLE` guard. Move its unchanged implementation into a new `primitives.cpp`, the only place that needs the private debug helpers. Buck, CMake, and CocoaPods already compile every `imagemanager/*.cpp`, so no build-file changes are needed. Changelog: [Internal] Differential Revision: D122534446
coado
added a commit
to coado/react-native
that referenced
this pull request
Oct 1, 2026
Summary: Keep the Image component's exported headers self-contained and free of implementation-only dependencies. - Move the `ImageSource` and `ImageResizeMode` `fromRawValue`/`toString` implementations from `conversions.h` into a new `conversions.cpp`. The header now only declares them, so it no longer exports `glog/logging.h` and `react_native_expect.h`. Every consumer of `conversions.h` (Image props, text input props, and generated component props) already links the Image library in Buck, CocoaPods, and CMake. - Drop the unused Android-only `MapBuffer.h` and `MapBufferBuilder.h` includes from `ImageState.h`; nothing in the Image module uses MapBuffer. - Declare standard-library dependencies directly in the Image headers (`<memory>`, `<utility>`, `<optional>`, `<string>`, `<cstdint>`). Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D122534476
coado
force-pushed
the
export-D122534476
branch
from
October 1, 2026 15:39
ffe5ea0 to
987b3ed
Compare
Summary: Pull Request resolved: react#58760 Keep the Image component's exported headers self-contained and free of implementation-only dependencies. - Move the `ImageSource` and `ImageResizeMode` `fromRawValue`/`toString` implementations from `conversions.h` into a new `conversions.cpp`. The header now only declares them, so it no longer exports `glog/logging.h` and `react_native_expect.h`. Every consumer of `conversions.h` (Image props, text input props, and generated component props) already links the Image library in Buck, CocoaPods, and CMake. - Drop the unused Android-only `MapBuffer.h` and `MapBufferBuilder.h` includes from `ImageState.h`; nothing in the Image module uses MapBuffer. - Declare standard-library dependencies directly in the Image headers (`<memory>`, `<utility>`, `<optional>`, `<string>`, `<cstdint>`). Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D122534476
coado
force-pushed
the
export-D122534476
branch
from
October 1, 2026 15:50
987b3ed to
3c468a0
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
Keep the Image component's exported headers self-contained and free of implementation-only dependencies.
ImageSourceandImageResizeModefromRawValue/toStringimplementations fromconversions.hinto a newconversions.cpp. The header now only declares them, so it no longer exportsglog/logging.handreact_native_expect.h. Every consumer ofconversions.h(Image props, text input props, and generated component props) already links the Image library in Buck, CocoaPods, and CMake.MapBuffer.handMapBufferBuilder.hincludes fromImageState.h; nothing in the Image module uses MapBuffer.<memory>,<utility>,<optional>,<string>,<cstdint>).Changelog: [Internal]
Reviewed By: cipolleschi
Differential Revision: D122534476