react-native-macos 0.66.7 → 0.66.11
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/Libraries/Text/Text/RCTTextView.m +7 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/CoreModules/RCTAlertController.m +8 -4
- package/React/CoreModules/RCTDevSettings.h +0 -10
- package/React/Modules/RCTEventEmitter.h +2 -2
- 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/third-party-podspecs/RCT-Folly.podspec +1 -1
|
@@ -104,7 +104,13 @@
|
|
|
104
104
|
NSString *superDescription = super.description;
|
|
105
105
|
NSRange semicolonRange = [superDescription rangeOfString:@";"];
|
|
106
106
|
NSString *replacement = [NSString stringWithFormat:@"; reactTag: %@; text: %@", self.reactTag, _textStorage.string];
|
|
107
|
-
|
|
107
|
+
// [TODO(macOS GH#774): super.description isn't guaranteed to have a semicolon in it on macOS
|
|
108
|
+
if (semicolonRange.location == NSNotFound) {
|
|
109
|
+
return [superDescription stringByAppendingString:replacement];
|
|
110
|
+
} else {
|
|
111
|
+
return [superDescription stringByReplacingCharactersInRange:semicolonRange withString:replacement];
|
|
112
|
+
}
|
|
113
|
+
// TODO(macOS GH#774)]
|
|
108
114
|
}
|
|
109
115
|
|
|
110
116
|
- (void)setSelectable:(BOOL)selectable
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -32,12 +32,16 @@
|
|
|
32
32
|
|
|
33
33
|
- (void)show:(BOOL)animated completion:(void (^)(void))completion
|
|
34
34
|
{
|
|
35
|
-
[self.alertWindow makeKeyAndVisible];
|
|
36
|
-
|
|
37
35
|
// [TODO(macOS GH#774)
|
|
36
|
+
// Call self.alertWindow to ensure that it gets populated
|
|
37
|
+
UIWindow *alertWindow = self.alertWindow;
|
|
38
|
+
|
|
38
39
|
// If the window is tracked by our application then it will show the alert
|
|
39
|
-
if ([[[UIApplication sharedApplication] windows] containsObject:
|
|
40
|
-
|
|
40
|
+
if ([[[UIApplication sharedApplication] windows] containsObject:alertWindow]) {
|
|
41
|
+
// On iOS 14, makeKeyAndVisible should only be called if alertWindow is tracked by the application.
|
|
42
|
+
// Later versions of iOS appear to already do this check for us behind the scenes.
|
|
43
|
+
[alertWindow makeKeyAndVisible];
|
|
44
|
+
[alertWindow.rootViewController presentViewController:self animated:animated completion:completion];
|
|
41
45
|
} else {
|
|
42
46
|
// When using Scenes, we must present the alert from a view controller associated with a window in the Scene. A fresh window (i.e. _alertWindow) cannot show the alert.
|
|
43
47
|
[RCTPresentedViewController() presentViewController:self animated:animated completion:completion];
|
|
@@ -48,16 +48,6 @@
|
|
|
48
48
|
|
|
49
49
|
@end
|
|
50
50
|
|
|
51
|
-
@protocol RCTDevSettingsInspectable <NSObject>
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Whether current jsi::Runtime is inspectable.
|
|
55
|
-
* Only set when using as a bridgeless turbo module.
|
|
56
|
-
*/
|
|
57
|
-
@property (nonatomic, assign, readwrite) BOOL isInspectable;
|
|
58
|
-
|
|
59
|
-
@end
|
|
60
|
-
|
|
61
51
|
@interface RCTDevSettings : RCTEventEmitter <RCTInitializing>
|
|
62
52
|
|
|
63
53
|
- (instancetype)initWithDataSource:(id<RCTDevSettingsDataSource>)dataSource;
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
@interface RCTEventEmitter : NSObject <RCTBridgeModule, RCTInvalidating>
|
|
15
15
|
|
|
16
16
|
@property (nonatomic, weak) RCTBridge * _Nullable bridge; // TODO(macOS GH#774)
|
|
17
|
-
@property (nonatomic, weak) RCTModuleRegistry *moduleRegistry;
|
|
18
|
-
@property (nonatomic, weak) RCTViewRegistry *viewRegistry_DEPRECATED;
|
|
17
|
+
@property (nonatomic, weak) RCTModuleRegistry * _Nullable moduleRegistry; // TODO(macOS GH#774)
|
|
18
|
+
@property (nonatomic, weak) RCTViewRegistry * _Nullable viewRegistry_DEPRECATED; // TODO(macOS GH#774)
|
|
19
19
|
|
|
20
20
|
- (instancetype _Nullable)initWithDisabledObservation; // TODO(macOS GH#774)
|
|
21
21
|
|
package/package.json
CHANGED
package/template/package.json
CHANGED
|
@@ -40,7 +40,7 @@ Pod::Spec.new do |spec|
|
|
|
40
40
|
'folly/hash/SpookyHashV2.cpp',
|
|
41
41
|
'folly/lang/Assume.cpp',
|
|
42
42
|
'folly/lang/CString.cpp',
|
|
43
|
-
|
|
43
|
+
'folly/lang/Exception.cpp',
|
|
44
44
|
'folly/memory/detail/MallocImpl.cpp',
|
|
45
45
|
'folly/net/NetOps.cpp',
|
|
46
46
|
'folly/portability/SysUio.cpp',
|