From 44c7b9f9db7bc67429376d29ef596c466c709c1e Mon Sep 17 00:00:00 2001 From: Joe Vilches Date: Tue, 26 Dec 2023 09:59:44 -0800 Subject: [PATCH] Change strict layout conformance to not use any errata (#42063) Summary: Static is no longer the default with the previous diff. We can undo this change. See D51731778 (https://github.com/facebook/react-native/pull/41733) for context Changelog: [Internal] Differential Revision: D52381124 --- .../renderer/components/view/YogaLayoutableShadowNode.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/react-native/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp b/packages/react-native/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp index 713ed762330c98..7757bd6695dbf6 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +++ b/packages/react-native/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp @@ -497,8 +497,7 @@ YGErrata YogaLayoutableShadowNode::resolveErrata(YGErrata defaultErrata) const { case LayoutConformance::Classic: return YGErrataAll; case LayoutConformance::Strict: - // This is temporary until the default position type is relative - return YGErrataPositionStaticBehavesLikeRelative; + return YGErrataNone; case LayoutConformance::Undefined: return defaultErrata; }