react-native-macos 0.66.68 → 0.66.69
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
|
@@ -726,6 +726,22 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : unused)
|
|
|
726
726
|
#endif // TODO(macOS GH#774)
|
|
727
727
|
|
|
728
728
|
#if TARGET_OS_OSX // [TODO(macOS GH#774)
|
|
729
|
+
// Workaround AppKit issue with directly manipulating the view layer's shadow.
|
|
730
|
+
- (NSShadow*)shadow
|
|
731
|
+
{
|
|
732
|
+
CALayer *layer = self.layer;
|
|
733
|
+
NSShadow *shadow = nil;
|
|
734
|
+
|
|
735
|
+
if (layer.shadowColor != nil && layer.shadowOpacity > 0) {
|
|
736
|
+
shadow = [NSShadow new];
|
|
737
|
+
|
|
738
|
+
shadow.shadowColor = [[NSColor colorWithCGColor:layer.shadowColor] colorWithAlphaComponent:layer.shadowOpacity];
|
|
739
|
+
shadow.shadowOffset = layer.shadowOffset;
|
|
740
|
+
shadow.shadowBlurRadius = layer.shadowRadius;
|
|
741
|
+
}
|
|
742
|
+
return shadow;
|
|
743
|
+
}
|
|
744
|
+
|
|
729
745
|
- (void)viewDidMoveToWindow
|
|
730
746
|
{
|
|
731
747
|
// Subscribe to view bounds changed notification so that the view can be notified when a
|
package/package.json
CHANGED