Skip to content

Commit 8d0f385

Browse files
authored
Apply suggestion from @Saadnajmi
1 parent 08dc34e commit 8d0f385

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -713,10 +713,10 @@ - (void)updateLayoutMetrics:(const LayoutMetrics &)layoutMetrics
713713
layoutMetrics.frame.size != oldLayoutMetrics.frame.size) {
714714
auto newTransform = _props->resolveTransform(layoutMetrics);
715715
CATransform3D caTransform = RCTCATransform3DFromTransformMatrix(newTransform);
716-
#if TARGET_OS_OSX // [macOS
717-
self.transform3D = caTransform;
718-
#else
719-
self.layer.transform = caTransform;
716+
#if !TARGET_OS_OSX // [macOS]
717+
self.layer.transform = RCTCATransform3DFromTransformMatrix(newTransform);
718+
#else // [macOS
719+
self.transform3D = RCTCATransform3DFromTransformMatrix(newTransform);
720720
#endif // macOS]
721721
}
722722
}

0 commit comments

Comments
 (0)