Skip to content

CSS Grid 1/9: Grid style types and public API#55876

Closed
NickGerleman wants to merge 1 commit into
react:mainfrom
NickGerleman:export-D94867121
Closed

CSS Grid 1/9: Grid style types and public API#55876
NickGerleman wants to merge 1 commit into
react:mainfrom
NickGerleman:export-D94867121

Conversation

@NickGerleman

Copy link
Copy Markdown
Contributor

Summary:

  • Add foundational data types, enums, style properties, and C API for expressing CSS Grid layouts
  • Includes GridLine.h, GridTrack.h, GridTrackType.h, Display::Grid, new alignment enums (Align::Start/End, Justify::Auto/Stretch/Start/End)
  • C API: YGGridTrackList.h/cpp, YGNodeStyle grid setters/getters
  • Layout helper updates, Node.h relativePosition made public

Split from react/yoga#1865. Part of the CSS Grid implementation series.

X-link: react/yoga#1893

Differential Revision: D94867121

Pulled By: NickGerleman

Summary:
- Add foundational data types, enums, style properties, and C API for expressing CSS Grid layouts
- Includes `GridLine.h`, `GridTrack.h`, `GridTrackType.h`, `Display::Grid`, new alignment enums (`Align::Start/End`, `Justify::Auto/Stretch/Start/End`)
- C API: `YGGridTrackList.h/cpp`, `YGNodeStyle` grid setters/getters
- Layout helper updates, `Node.h` `relativePosition` made public

Split from react/yoga#1865. Part of the CSS Grid implementation series.

X-link: react/yoga#1893

Differential Revision: D94867121

Pulled By: NickGerleman
@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 3, 2026
@meta-codesync

meta-codesync Bot commented Mar 3, 2026

Copy link
Copy Markdown

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

meta-codesync Bot pushed a commit to react/yoga that referenced this pull request Mar 5, 2026
Summary:
X-link: react/react-native#55876

- Add foundational data types, enums, style properties, and C API for expressing CSS Grid layouts
- Includes `GridLine.h`, `GridTrack.h`, `GridTrackType.h`, `Display::Grid`, new alignment enums (`Align::Start/End`, `Justify::Auto/Stretch/Start/End`)
- C API: `YGGridTrackList.h/cpp`, `YGNodeStyle` grid setters/getters
- Layout helper updates, `Node.h` `relativePosition` made public

Split from #1865. Part of the CSS Grid implementation series.

Changelog: [Internal]

Pull Request resolved: #1893

Reviewed By: sammy-SC

Differential Revision: D94867121

Pulled By: NickGerleman

fbshipit-source-id: adcb6d107cdd782550a614f87f84cff3ecefd806
@meta-codesync meta-codesync Bot closed this in 26cef64 Mar 5, 2026
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @intergalacticspacehighway in 26cef64

When will my fix make it into a release? | How to file a pick request?

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Mar 5, 2026
@meta-codesync

meta-codesync Bot commented Mar 5, 2026

Copy link
Copy Markdown

@NickGerleman merged this pull request in 26cef64.

zoontek pushed a commit to zoontek/react-native that referenced this pull request Mar 9, 2026
Summary:
Pull Request resolved: react#55876

- Add foundational data types, enums, style properties, and C API for expressing CSS Grid layouts
- Includes `GridLine.h`, `GridTrack.h`, `GridTrackType.h`, `Display::Grid`, new alignment enums (`Align::Start/End`, `Justify::Auto/Stretch/Start/End`)
- C API: `YGGridTrackList.h/cpp`, `YGNodeStyle` grid setters/getters
- Layout helper updates, `Node.h` `relativePosition` made public

Split from react/yoga#1865. Part of the CSS Grid implementation series.

Changelog: [Internal]

X-link: react/yoga#1893

Reviewed By: sammy-SC

Differential Revision: D94867121

Pulled By: NickGerleman

fbshipit-source-id: adcb6d107cdd782550a614f87f84cff3ecefd806
j-piasecki added a commit to j-piasecki/react-native that referenced this pull request Jun 9, 2026
Backport prerequisite: make cleanupContentsNodesRecursively externally
linkable and declare it in CalculateLayout.h so AbsoluteLayout.cpp can
call it. This mirrors the relevant slice of facebook#55876 (26cef64), which
is not present on this branch, and is required before applying facebook#56422
and facebook#57103.
j-piasecki added a commit to j-piasecki/react-native that referenced this pull request Jun 9, 2026
Backport prerequisite: make cleanupContentsNodesRecursively externally
linkable and declare it in CalculateLayout.h so AbsoluteLayout.cpp can
call it. This mirrors the relevant slice of react#55876 (26cef64), which
is not present on this branch, and is required before applying react#56422
and react#57103.
j-piasecki added a commit to j-piasecki/react-native that referenced this pull request Jun 9, 2026
Backport prerequisite: make cleanupContentsNodesRecursively externally
linkable and declare it in CalculateLayout.h so AbsoluteLayout.cpp can
call it. This mirrors the relevant slice of react#55876 (26cef64), which
is not present on this branch, and is required before applying react#56422
and react#57103.
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. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants