diff --git a/React/Layout/Layout.c b/React/Layout/Layout.c index fb50d1fdceee1c..cb4b042c31fbe0 100644 --- a/React/Layout/Layout.c +++ b/React/Layout/Layout.c @@ -397,7 +397,9 @@ static void layoutNodeImpl(css_node_t *node, float parentMaxWidth) { getPaddingAndBorderAxis(node, CSS_FLEX_DIRECTION_COLUMN); } } - return; + if (node->children_count == 0) { + return; + } } // Pre-fill some dimensions straight from the parent