From 13771f927696ae2357980efcf0eccbd40eaacb15 Mon Sep 17 00:00:00 2001 From: Joe Vilches Date: Wed, 3 Jan 2024 13:37:40 -0800 Subject: [PATCH] Change strict layout conformance to not use any errata (#42063) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/42063 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] Reviewed By: NickGerleman Differential Revision: D52381124 fbshipit-source-id: 1e4336be6db5aa5d8786fb4f0a211558a7f66365 --- .../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; }