react-native-macos 0.64.12 → 0.64.16
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/React/Modules/MacOS/RCTAccessibilityManager.m +2 -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
|
|
|
@@ -99,9 +99,10 @@ RCT_EXPORT_METHOD(getCurrentVoiceOverState:(RCTResponseSenderBlock)callback
|
|
|
99
99
|
|
|
100
100
|
RCT_EXPORT_METHOD(setAccessibilityFocus:(nonnull NSNumber *)reactTag)
|
|
101
101
|
{
|
|
102
|
-
|
|
102
|
+
dispatch_async(dispatch_get_main_queue(), ^{
|
|
103
103
|
NSView *view = [self.bridge.uiManager viewForReactTag:reactTag];
|
|
104
104
|
[[view window] makeFirstResponder:view];
|
|
105
|
+
NSAccessibilityPostNotification(view, NSAccessibilityLayoutChangedNotification);
|
|
105
106
|
});
|
|
106
107
|
}
|
|
107
108
|
|
package/package.json
CHANGED