react-native-macos 0.73.22 → 0.73.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/Views/RCTView.m +8 -0
- package/React/Views/UIView+React.h +8 -0
- package/React/Views/UIView+React.m +11 -0
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +1 -1
package/React/Base/RCTVersion.m
CHANGED
package/React/Views/RCTView.m
CHANGED
|
@@ -1318,6 +1318,14 @@ static CGFloat RCTDefaultIfNegativeTo(CGFloat defaultValue, CGFloat x)
|
|
|
1318
1318
|
[self updateClippingForLayer:layer];
|
|
1319
1319
|
}
|
|
1320
1320
|
|
|
1321
|
+
#if TARGET_OS_OSX // [macOS
|
|
1322
|
+
- (void)updateReactTransformInternal:(CATransform3D)transform
|
|
1323
|
+
{
|
|
1324
|
+
[self setTransform3D:transform];
|
|
1325
|
+
[self setNeedsDisplay];
|
|
1326
|
+
}
|
|
1327
|
+
#endif // macOS]
|
|
1328
|
+
|
|
1321
1329
|
static BOOL RCTLayerHasShadow(CALayer *layer)
|
|
1322
1330
|
{
|
|
1323
1331
|
return layer.shadowOpacity * CGColorGetAlpha(layer.shadowColor) > 0;
|
|
@@ -77,6 +77,14 @@
|
|
|
77
77
|
*/
|
|
78
78
|
- (void)reactSetFrame:(CGRect)frame;
|
|
79
79
|
|
|
80
|
+
|
|
81
|
+
#if TARGET_OS_OSX // [macOS
|
|
82
|
+
/**
|
|
83
|
+
* Used by macOS to propagate transform changes internally.
|
|
84
|
+
*/
|
|
85
|
+
- (void)updateReactTransformInternal:(CATransform3D)transform;
|
|
86
|
+
#endif // macOS]
|
|
87
|
+
|
|
80
88
|
/**
|
|
81
89
|
* This method finds and returns the containing view controller for the view.
|
|
82
90
|
*/
|
|
@@ -306,10 +306,21 @@ static void updateTransform(RCTPlatformView *view) // [macOS]
|
|
|
306
306
|
transform = view.reactTransform;
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
+
#if !TARGET_OS_OSX // [macOS]
|
|
309
310
|
view.layer.transform = transform;
|
|
310
311
|
// Enable edge antialiasing in rotation, skew, or perspective transforms
|
|
311
312
|
view.layer.allowsEdgeAntialiasing = transform.m12 != 0.0f || transform.m21 != 0.0f || transform.m34 != 0.0f;
|
|
313
|
+
#else // [macOS
|
|
314
|
+
[view updateReactTransformInternal:transform];
|
|
315
|
+
#endif // macOS]
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
#if TARGET_OS_OSX // [macOS
|
|
319
|
+
- (void)updateReactTransformInternal:(CATransform3D)transform
|
|
320
|
+
{
|
|
321
|
+
// Do nothing, this will get overridden by RCTView and other subclasses as needed.
|
|
312
322
|
}
|
|
323
|
+
#endif // macOS]
|
|
313
324
|
|
|
314
325
|
- (UIViewController *)reactViewController
|
|
315
326
|
{
|