diff --git a/packages/react-native/ReactCommon/yoga/yoga/algorithm/PixelGrid.cpp b/packages/react-native/ReactCommon/yoga/yoga/algorithm/PixelGrid.cpp index 61de2be2e8f6..5c5a3b7ffbaf 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/algorithm/PixelGrid.cpp +++ b/packages/react-native/ReactCommon/yoga/yoga/algorithm/PixelGrid.cpp @@ -128,6 +128,9 @@ void roundLayoutResultsToPixelGrid( } for (yoga::Node* child : node->getChildren()) { + if (child->getOwner() != node) { + continue; + } roundLayoutResultsToPixelGrid(child, absoluteNodeLeft, absoluteNodeTop); } }