react-native-macos 0.71.18 → 0.71.19

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.
@@ -12,6 +12,6 @@
12
12
  exports.version = {
13
13
  major: 0,
14
14
  minor: 71,
15
- patch: 18,
15
+ patch: 19,
16
16
  prerelease: null,
17
17
  };
@@ -551,7 +551,7 @@ typedef UISwitch RCTUISwitch;
551
551
  #else
552
552
  @interface RCTUISwitch : NSSwitch
553
553
  NS_ASSUME_NONNULL_BEGIN
554
- @property (nonatomic, assign, getter=isOn) BOOL on;
554
+ @property (nonatomic, getter=isOn) BOOL on;
555
555
 
556
556
  - (void)setOn:(BOOL)on animated:(BOOL)animated;
557
557
 
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(71),
26
- RCTVersionPatch: @(18),
26
+ RCTVersionPatch: @(19),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -662,7 +662,7 @@ BOOL RCTUIViewSetClipsToBounds(RCTPlatformView *view)
662
662
 
663
663
  - (void)setOn:(BOOL)on
664
664
  {
665
- self.state = on ? NSControlStateValueOn : NSControlStateValueOff;
665
+ [self setOn:on animated:NO];
666
666
  }
667
667
 
668
668
  - (void)setOn:(BOOL)on animated:(BOOL)animated {
@@ -46,7 +46,7 @@ RCT_EXPORT_METHOD(setValue : (nonnull NSNumber *)viewTag toValue : (BOOL)value)
46
46
  if ([view isKindOfClass:[RCTSwitch class]]) {
47
47
  [(RCTSwitch *)view setOn:value animated:NO];
48
48
  } else {
49
- RCTLogError(@"view type must be UISwitch");
49
+ RCTLogError(@"view type must be RCTUISwitch"); // [macOS]
50
50
  }
51
51
  }];
52
52
  }
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.71.18
1
+ VERSION_NAME=0.71.19
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  # JVM Versions
@@ -17,6 +17,6 @@ public class ReactNativeVersion {
17
17
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
18
18
  "major", 0,
19
19
  "minor", 71,
20
- "patch", 18,
20
+ "patch", 19,
21
21
  "prerelease", null);
22
22
  }
@@ -17,7 +17,7 @@ namespace facebook::react {
17
17
  constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 71;
20
- int32_t Patch = 18;
20
+ int32_t Patch = 19;
21
21
  std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.71.18",
3
+ "version": "0.71.19",
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": "18.2.0",
15
- "react-native-macos": "0.71.18"
15
+ "react-native-macos": "0.71.19"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@babel/core": "^7.20.0",