mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Back out "Remove ShadowNodeTraits::Trait::DirtyYogaNode" (#52528)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
committed by
Moti Zilberman
parent
c665a96939
commit
d9bf351b12
@@ -82,6 +82,15 @@ class ShadowNodeTraits {
|
||||
// Must not be set directly. It is used by the view culling algorithm to
|
||||
// efficiently determine if a node is uncullable.
|
||||
Unstable_uncullableTrace = 1 << 13,
|
||||
|
||||
// Indicates that the `YogaLayoutableShadowNode` must set `isDirty` flag for
|
||||
// Yoga node when a `ShadowNode` is being cloned. `ShadowNode`s that modify
|
||||
// Yoga styles in the constructor (or later) *after* the `ShadowNode`
|
||||
// is cloned must set this trait.
|
||||
// Any Yoga node (not only Leaf ones) can have this trait.
|
||||
// **Deprecated**: This trait is deprecated and will be removed in a future
|
||||
// version of React Native.
|
||||
DirtyYogaNode = 1 << 14,
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user