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.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTUIKit.h +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/Base/macOS/RCTUIKit.m +1 -1
- package/React/Views/RCTSwitchManager.m +1 -1
- 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/RCTUIKit.h
CHANGED
|
@@ -551,7 +551,7 @@ typedef UISwitch RCTUISwitch;
|
|
|
551
551
|
#else
|
|
552
552
|
@interface RCTUISwitch : NSSwitch
|
|
553
553
|
NS_ASSUME_NONNULL_BEGIN
|
|
554
|
-
@property (nonatomic,
|
|
554
|
+
@property (nonatomic, getter=isOn) BOOL on;
|
|
555
555
|
|
|
556
556
|
- (void)setOn:(BOOL)on animated:(BOOL)animated;
|
|
557
557
|
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -662,7 +662,7 @@ BOOL RCTUIViewSetClipsToBounds(RCTPlatformView *view)
|
|
|
662
662
|
|
|
663
663
|
- (void)setOn:(BOOL)on
|
|
664
664
|
{
|
|
665
|
-
self
|
|
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
|
|
49
|
+
RCTLogError(@"view type must be RCTUISwitch"); // [macOS]
|
|
50
50
|
}
|
|
51
51
|
}];
|
|
52
52
|
}
|
package/package.json
CHANGED