From 88a55baeaaa68619d815f53a51e32edb937e291f Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Tue, 28 Nov 2023 18:51:34 -0800 Subject: [PATCH] Change default back to `position: "relative"` (#41480) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/41480 X-link: https://github.com/facebook/yoga/pull/1469 The previous version of static didn't do anything inside of Yoga. Now that we're making it do something, this changes the default back to relative so that users with no errata set don't see their deafult styles changing. Reviewed By: joevilches Differential Revision: D51182955 fbshipit-source-id: c0ea357694e1367fb6786f1907dfff784b19a4bc --- packages/react-native/ReactCommon/yoga/yoga/style/Style.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-native/ReactCommon/yoga/yoga/style/Style.h b/packages/react-native/ReactCommon/yoga/yoga/style/Style.h index 30f631f279b602..530cbb75c309ed 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/style/Style.h +++ b/packages/react-native/ReactCommon/yoga/yoga/style/Style.h @@ -270,7 +270,8 @@ class YG_EXPORT Style { Align alignContent_ : bitCount() = Align::FlexStart; Align alignItems_ : bitCount() = Align::Stretch; Align alignSelf_ : bitCount() = Align::Auto; - PositionType positionType_ : bitCount() = PositionType::Static; + PositionType positionType_ + : bitCount() = PositionType::Relative; Wrap flexWrap_ : bitCount() = Wrap::NoWrap; Overflow overflow_ : bitCount() = Overflow::Visible; Display display_ : bitCount() = Display::Flex;