Skip to content

Export LayoutResults::operator== - #2091

Merged
meta-codesync[bot] merged 1 commit into
react:mainfrom
lenaic:export-D131770771
Nov 13, 2026
Merged

meta-codesync[bot] merged 1 commit into
react:mainfrom
lenaic:export-D131770771

Conversation

@lenaic

@lenaic lenaic commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Summary:
X-link: react/react-native#59997

yoga::Node is exported from the Yoga library and hands out its LayoutResults through getLayout(), but LayoutResults::operator== is defined out of line and not exported. Code outside Yoga that compares two layout results fails to link wherever Yoga is built as a shared library with hidden visibility.

Mark the operator YG_EXPORT so React Native can compare a node's layout results with those of the node it replaces.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D131770771

Summary:
X-link: react/react-native#59997

`yoga::Node` is exported from the Yoga library and hands out its `LayoutResults` through `getLayout()`, but `LayoutResults::operator==` is defined out of line and not exported. Code outside Yoga that compares two layout results fails to link wherever Yoga is built as a shared library with hidden visibility.

Mark the operator `YG_EXPORT` so React Native can compare a node's layout results with those of the node it replaces.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D131770771
@meta-cla meta-cla Bot added the CLA Signed label Nov 13, 2026
@meta-codesync

meta-codesync Bot commented Nov 13, 2026

Copy link
Copy Markdown

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

@javache javache left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@meta-codesync
meta-codesync Bot merged commit cac7b34 into react:main Nov 13, 2026
31 of 36 checks passed
meta-codesync Bot pushed a commit to meta/litho that referenced this pull request Nov 13, 2026
Summary:
X-link: react/yoga#2091

X-link: react/react-native#59997

`yoga::Node` is exported from the Yoga library and hands out its `LayoutResults` through `getLayout()`, but `LayoutResults::operator==` is defined out of line and not exported. Code outside Yoga that compares two layout results fails to link wherever Yoga is built as a shared library with hidden visibility.

Mark the operator `YG_EXPORT` so React Native can compare a node's layout results with those of the node it replaces.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D131770771

fbshipit-source-id: 9b379ff705881bee3fc6470402c2c3fe73de6ec0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants