Skip to content

Commit 3d91d6e

Browse files
committed
Fix shadow node layout
1 parent 3ae6cd6 commit 3d91d6e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

packages/react-native-gesture-handler/shared/shadowNodes/react/renderer/components/rngesturehandler_codegen/RNGestureHandlerButtonWrapperShadowNode.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,10 @@ void RNGestureHandlerButtonWrapperShadowNode::layout(
6868
// TODO: figure out the correct way to setup metrics between button wrapper
6969
// and the child
7070
auto metrics = grandChild->getLayoutMetrics();
71-
setLayoutMetrics(metrics);
71+
mutableChild->setLayoutMetrics(metrics);
7272

7373
auto metricsNoOrigin = grandChild->getLayoutMetrics();
7474
metricsNoOrigin.frame.origin = Point{};
75-
76-
mutableChild->setLayoutMetrics(metricsNoOrigin);
7775
mutableGrandChild->setLayoutMetrics(metricsNoOrigin);
7876
}
7977

0 commit comments

Comments
 (0)