File tree 1 file changed +8
-0
lines changed
packages/react-native/React/Views
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 12
12
#import " RCTAssert.h"
13
13
#import " RCTLog.h"
14
14
#import " RCTShadowView.h"
15
+ #import " RCTView.h"
15
16
16
17
@implementation RCTPlatformView (React) // [macOS]
17
18
@@ -306,9 +307,16 @@ static void updateTransform(RCTPlatformView *view) // [macOS]
306
307
transform = view.reactTransform ;
307
308
}
308
309
310
+ #if !TARGET_OS_OSX // [macOS]
309
311
view.layer .transform = transform;
310
312
// Enable edge antialiasing in rotation, skew, or perspective transforms
311
313
view.layer .allowsEdgeAntialiasing = transform.m12 != 0 .0f || transform.m21 != 0 .0f || transform.m34 != 0 .0f ;
314
+ #else // [macOS
315
+ if ([view isKindOfClass: [RCTView class ]]) {
316
+ [(RCTView *)view setTransform3D: transform];
317
+ [view setNeedsDisplay: YES ];
318
+ }
319
+ #endif // macOS]
312
320
}
313
321
314
322
- (UIViewController *)reactViewController
You can’t perform that action at this time.
0 commit comments