Skip to content

[RN 0.81] Do not set the ShadowNodeTraits::Trait::DirtyYogaNode - #646

Merged
janicduplessis merged 2 commits into
appandflow:mainfrom
cortinico:patch-1
Jul 10, 2025
Merged

[RN 0.81] Do not set the ShadowNodeTraits::Trait::DirtyYogaNode#646
janicduplessis merged 2 commits into
appandflow:mainfrom
cortinico:patch-1

Conversation

@cortinico

@cortinico cortinico commented Jul 10, 2025

Copy link
Copy Markdown
Contributor

Summary

Not sure why you folks are setting the ShadowNodeTraits::Trait::DirtyYogaNode trait on the SafeAreaView Shadow Node (is it a copy form the core one?).

This trait is going away in core in 0.81.
I'm actually re-adding it to reduce the blast radius of this breaking change, but still it would be worth to clean this up.

Fixes #645

@cortinico

Copy link
Copy Markdown
Contributor Author

cc @janicduplessis

@janicduplessis

Copy link
Copy Markdown
Collaborator

Thanks @cortinico !

Yes I am pretty sure this was a copy paste from core as it was my starting point for fabric implementation.

@janicduplessis janicduplessis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks like this is the commit that removes it from core react/react-native@ecf1b84. Let's also remove the method completely.

@cortinico

Copy link
Copy Markdown
Contributor Author

Looks like this is the commit that removes it from core facebook/react-native@ecf1b84. Let's also remove the method completely.

done

@janicduplessis
janicduplessis merged commit 7f81f8e into appandflow:main Jul 10, 2025
5 checks passed
@janicduplessis

Copy link
Copy Markdown
Collaborator

Released in 5.5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No member named 'DirtyYogaNode' in 'facebook::react::ShadowNodeTraits::Trait'

2 participants