diff --git a/ReactCommon/yoga/yoga/YGNodePrint.cpp b/ReactCommon/yoga/yoga/YGNodePrint.cpp index bde184dc3f1..9a01a76c38b 100644 --- a/ReactCommon/yoga/yoga/YGNodePrint.cpp +++ b/ReactCommon/yoga/yoga/YGNodePrint.cpp @@ -205,7 +205,7 @@ void YGNodeToString( } appendFormatedString(str, ">"); - const uint32_t childCount = static_cast(node->getChildren().size()); + const uint32_t childCount = static_cast(node->children.size()); if (options & YGPrintOptionsChildren && childCount > 0) { for (uint32_t i = 0; i < childCount; i++) { appendFormatedString(str, "\n"); diff --git a/ReactCommon/yoga/yoga/Yoga.cpp b/ReactCommon/yoga/yoga/Yoga.cpp index 757549b5efc..9520e9329c7 100644 --- a/ReactCommon/yoga/yoga/Yoga.cpp +++ b/ReactCommon/yoga/yoga/Yoga.cpp @@ -471,7 +471,7 @@ YGNodeRef YGNodeGetParent(const YGNodeRef node) { } uint32_t YGNodeGetChildCount(const YGNodeRef node) { - return static_cast(node->getChildren().size()); + return static_cast(node->children.size()); } void YGNodeMarkDirty(const YGNodeRef node) {