Skip to content

feat: add viewport size to LayoutContext class#56209

Open
paradowstack wants to merge 1 commit intofacebook:mainfrom
paradowstack:feat/viewport-size
Open

feat: add viewport size to LayoutContext class#56209
paradowstack wants to merge 1 commit intofacebook:mainfrom
paradowstack:feat/viewport-size

Conversation

@paradowstack
Copy link

Summary:

Add viewport size to LayoutContext and wire it through Android and iOS layout setup so viewport dimensions are available during layout.

This was extracted from the larger calc() work in PR #56162.

Changelog:

[GENERAL] [ADDED] - Add viewport size to LayoutContext

Test Plan:

  • This change is limited to internal layout plumbing in React Native core and does not alter external behavior on its own.
  • Validation for the actual calc() use cases will be covered in the follow-up work that consumes this plumbing.

@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 Mar 24, 2026
@facebook-github-tools facebook-github-tools bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Mar 24, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 24, 2026

@NickGerleman has imported this pull request. If you are a Meta employee, you can view this in D98004758.

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. p: Callstack Partner: Callstack Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant