react-native-macos 0.64.14 → 0.64.15
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/CoreModules/RCTAlertController.m +10 -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/RCTVersion.m
CHANGED
|
@@ -33,7 +33,16 @@
|
|
|
33
33
|
- (void)show:(BOOL)animated completion:(void (^)(void))completion
|
|
34
34
|
{
|
|
35
35
|
[self.alertWindow makeKeyAndVisible];
|
|
36
|
-
|
|
36
|
+
|
|
37
|
+
// [TODO(macOS GH#774)
|
|
38
|
+
// If the window is tracked by our application then it will show the alert
|
|
39
|
+
if ([[[UIApplication sharedApplication] windows] containsObject:self.alertWindow]) {
|
|
40
|
+
[self.alertWindow.rootViewController presentViewController:self animated:animated completion:completion];
|
|
41
|
+
} else {
|
|
42
|
+
// 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
|
+
[RCTPresentedViewController() presentViewController:self animated:animated completion:completion];
|
|
44
|
+
}
|
|
45
|
+
// TODO(macOS GH#774)]
|
|
37
46
|
}
|
|
38
47
|
#endif // ]TODO(macOS GH#774)
|
|
39
48
|
|
package/package.json
CHANGED