From 39383d1189a23eb52e9ea6bdcbb11bba81cefb61 Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Mon, 19 Mar 2018 16:51:35 -0700 Subject: [PATCH] Fabric: Improved YogaLayoutableShadowNode printing Summary: `LTR` is actually a default value for `direction` here, because an `inherit` value makes no sense for YGLayout (because it's *computed* value by definition). Reviewed By: fkgozali Differential Revision: D7330335 fbshipit-source-id: b3c7736c104689f2296e150f0cf57d622483d537 --- ReactCommon/fabric/view/yoga/YogaLayoutableShadowNode.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ReactCommon/fabric/view/yoga/YogaLayoutableShadowNode.cpp b/ReactCommon/fabric/view/yoga/YogaLayoutableShadowNode.cpp index 3684f75ab..09301f35b 100644 --- a/ReactCommon/fabric/view/yoga/YogaLayoutableShadowNode.cpp +++ b/ReactCommon/fabric/view/yoga/YogaLayoutableShadowNode.cpp @@ -149,6 +149,7 @@ SharedDebugStringConvertibleList YogaLayoutableShadowNode::getDebugProps() const } YGLayout defaultYogaLayout = YGLayout(); + defaultYogaLayout.direction = YGDirectionLTR; YGLayout currentYogaLayout = std::const_pointer_cast(yogaNode_)->getLayout(); #define YOGA_LAYOUT_PROPS_ADD_TO_SET(stringName, propertyName, accessor, convertor) \