react-native-macos 0.68.25 → 0.68.26
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 +16 -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/template/package.json +1 -1
package/React/Base/RCTVersion.m
CHANGED
package/React/Views/RCTView.m
CHANGED
|
@@ -716,6 +716,22 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : unused)
|
|
|
716
716
|
#endif // TODO(macOS GH#774)
|
|
717
717
|
|
|
718
718
|
#if TARGET_OS_OSX // [TODO(macOS GH#774)
|
|
719
|
+
// Workaround AppKit issue with directly manipulating the view layer's shadow.
|
|
720
|
+
- (NSShadow*)shadow
|
|
721
|
+
{
|
|
722
|
+
CALayer *layer = self.layer;
|
|
723
|
+
NSShadow *shadow = nil;
|
|
724
|
+
|
|
725
|
+
if (layer.shadowColor != nil && layer.shadowOpacity > 0) {
|
|
726
|
+
shadow = [NSShadow new];
|
|
727
|
+
|
|
728
|
+
shadow.shadowColor = [[NSColor colorWithCGColor:layer.shadowColor] colorWithAlphaComponent:layer.shadowOpacity];
|
|
729
|
+
shadow.shadowOffset = layer.shadowOffset;
|
|
730
|
+
shadow.shadowBlurRadius = layer.shadowRadius;
|
|
731
|
+
}
|
|
732
|
+
return shadow;
|
|
733
|
+
}
|
|
734
|
+
|
|
719
735
|
- (void)viewDidMoveToWindow
|
|
720
736
|
{
|
|
721
737
|
// Subscribe to view bounds changed notification so that the view can be notified when a
|
package/package.json
CHANGED