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.
@@ -16,6 +16,6 @@
16
16
  exports.version = {
17
17
  major: 0,
18
18
  minor: 68,
19
- patch: 25,
19
+ patch: 26,
20
20
  prerelease: null,
21
21
  };
@@ -27,7 +27,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
27
27
  __rnVersion = @{
28
28
  RCTVersionMajor: @(0),
29
29
  RCTVersionMinor: @(68),
30
- RCTVersionPatch: @(25),
30
+ RCTVersionPatch: @(26),
31
31
  RCTVersionPrerelease: [NSNull null],
32
32
  };
33
33
  });
@@ -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
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.68.25
1
+ VERSION_NAME=0.68.26
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  POM_NAME=ReactNative
@@ -21,6 +21,6 @@ public class ReactNativeVersion {
21
21
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
22
22
  "major", 0,
23
23
  "minor", 68,
24
- "patch", 25,
24
+ "patch", 26,
25
25
  "prerelease", null);
26
26
  }
@@ -21,7 +21,7 @@ namespace facebook::react {
21
21
  constexpr struct {
22
22
  int32_t Major = 0;
23
23
  int32_t Minor = 68;
24
- int32_t Patch = 25;
24
+ int32_t Patch = 26;
25
25
  std::string_view Prerelease = "";
26
26
  } ReactNativeVersion;
27
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.68.25",
3
+ "version": "0.68.26",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "react": "17.0.2",
15
- "react-native-macos": "0.68.25"
15
+ "react-native-macos": "0.68.26"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@babel/core": "^7.12.9",