Repository navigation
Conversation
|
@coado has exported this pull request. If you are a Meta employee, you can view the originating Diff in D123601668. |
coado
force-pushed
the
export-D123601668
branch
from
October 6, 2026 16:09
27b5869 to
454a0db
Compare
coado
added a commit
to coado/react-native
that referenced
this pull request
Oct 6, 2026
Summary: `react/renderer/components/modal/ModalHostViewUtils.h` declares `ModalHostViewScreenSize()`, a per-platform helper that is only used to compute the default screen size of `ModalHostViewState`. Lower it from "for frameworks" to private. It was reachable from the "for frameworks" API only because `ModalHostViewState.h` called it from an inline default constructor. Move that constructor out of line into `ModalHostViewState.cpp`, so `ModalHostViewState.h` no longer includes the utils header. While here, `ModalHostViewState.h` now gets `Float`/`Size` from the `<React/Graphics.h>` umbrella instead of including the public `react/renderer/graphics/Float.h` directly (`Size` previously only arrived transitively through the utils header). Changelog: [Internal] Differential Revision: D123601668
Summary: Pull Request resolved: react#58883 `react/renderer/components/modal/ModalHostViewUtils.h` declares `ModalHostViewScreenSize()`, a per-platform helper that is only used to compute the default screen size of `ModalHostViewState`. Lower it from "for frameworks" to private. It was reachable from the "for frameworks" API only because `ModalHostViewState.h` called it from an inline default constructor. Move that constructor out of line into `ModalHostViewState.cpp`, so `ModalHostViewState.h` no longer includes the utils header. While here, `ModalHostViewState.h` now gets `Float`/`Size` from the `<React/Graphics.h>` umbrella instead of including the public `react/renderer/graphics/Float.h` directly (`Size` previously only arrived transitively through the utils header). Changelog: [Internal] Differential Revision: D123601668
coado
force-pushed
the
export-D123601668
branch
from
October 6, 2026 16:17
454a0db to
00b37b3
Compare
|
This pull request has been merged in 38bd21b. |
|
This pull request has been reverted by db42fda. |
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:
react/renderer/components/modal/ModalHostViewUtils.hdeclaresModalHostViewScreenSize(), a per-platform helper that is only used to compute the default screen size ofModalHostViewState. Lower it from "for frameworks" to private.It was reachable from the "for frameworks" API only because
ModalHostViewState.hcalled it from an inline default constructor. Move that constructor out of line intoModalHostViewState.cpp, soModalHostViewState.hno longer includes the utils header.While here,
ModalHostViewState.hnow getsFloat/Sizefrom the<React/Graphics.h>umbrella instead of including the publicreact/renderer/graphics/Float.hdirectly (Sizepreviously only arrived transitively through the utils header).Changelog: [Internal]
Differential Revision: D123601668