mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
1 parent
fa436b4a63
commit
88a55baeaa
1 file changed
+2
-1
@@ -270,7 +270,8 @@ class YG_EXPORT Style {
|
||||
Align alignContent_ : bitCount<Align>() = Align::FlexStart;
|
||||
Align alignItems_ : bitCount<Align>() = Align::Stretch;
|
||||
Align alignSelf_ : bitCount<Align>() = Align::Auto;
|
||||
PositionType positionType_ : bitCount<PositionType>() = PositionType::Static;
|
||||
PositionType positionType_
|
||||
: bitCount<PositionType>() = PositionType::Relative;
|
||||
Wrap flexWrap_ : bitCount<Wrap>() = Wrap::NoWrap;
|
||||
Overflow overflow_ : bitCount<Overflow>() = Overflow::Visible;
|
||||
Display display_ : bitCount<Display>() = Display::Flex;
|
||||
|
||||
Reference in new issue
Block a user