Skip to content

Commit d9bf351

Browse files
cortinicomotiz88
authored andcommitted
Back out "Remove ShadowNodeTraits::Trait::DirtyYogaNode" (#52528)
Summary: Pull Request resolved: #52528 This was a breaking change that is currently breaking `react-native-safe-area-context` so we can't ship it as it is, especially because all the apps in OSS will be affected by this. Changelog: [General] [Changed] - Revert breaking change due to the removal of `ShadowNodeTraits::Trait::DirtyYogaNode` Original commit changeset: 869e81f0ae00 Original Phabricator Diff: D75324251 Reviewed By: huntie Differential Revision: D78085848 fbshipit-source-id: f7fcc5e33d59cc966a4ee88dfdbedca4f4c580e0
1 parent c665a96 commit d9bf351

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

packages/react-native/ReactCommon/react/renderer/core/ShadowNodeTraits.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,15 @@ class ShadowNodeTraits {
8282
// Must not be set directly. It is used by the view culling algorithm to
8383
// efficiently determine if a node is uncullable.
8484
Unstable_uncullableTrace = 1 << 13,
85+
86+
// Indicates that the `YogaLayoutableShadowNode` must set `isDirty` flag for
87+
// Yoga node when a `ShadowNode` is being cloned. `ShadowNode`s that modify
88+
// Yoga styles in the constructor (or later) *after* the `ShadowNode`
89+
// is cloned must set this trait.
90+
// Any Yoga node (not only Leaf ones) can have this trait.
91+
// **Deprecated**: This trait is deprecated and will be removed in a future
92+
// version of React Native.
93+
DirtyYogaNode = 1 << 14,
8594
};
8695

8796
/*

0 commit comments

Comments
 (0)