-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Labels
Type Pick RequestPick requests to include commits inside a React Native releasePick requests to include commits inside a React Native release
Description
Target Branch
0.81
Link to commit or PR to be picked
Description
Summary:
This PR fixes two issues with display: contents implementation:
- When a node with
display: contentsset is a leaf, it won't be cloned after the initial tree is built. The added test case covers this scenario. - It was possible for the subtree of
display: contentsnodes not to be cloned during layout. I don't have a minimal reproduction for this one, unfortunately. It was discovered in the Expensify app: [Due for payment 2025-07-28] [$250] [DEV] - iOS HybridApp crashes when opening a workspace expense that misses category Expensify/App#65268, along with a consistent reproduction. In that specific case, it seems to be heavily tied toreact-native-onyx, which is a state management library.
Changelog: [GENERAL][FIXED] - Fixed nodes with display: contents set being cloned with the wrong owner
X-link: facebook/yoga#1826
Reviewed By: adityasharat
Differential Revision: D78084270
Pulled By: j-piasecki
Metadata
Metadata
Assignees
Labels
Type Pick RequestPick requests to include commits inside a React Native releasePick requests to include commits inside a React Native release
Type
Projects
Status
Done / Picked