We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f06fdc6 commit 9b0b800Copy full SHA for 9b0b800
packages/react-native/React/CoreModules/RCTAlertController.mm
@@ -20,9 +20,11 @@ @implementation RCTAlertController
20
- (UIWindow *)alertWindow
21
{
22
if (_alertWindow == nil) {
23
+#if TARGET_OS_VISION
24
+ _alertWindow = [[UIWindow alloc] initWithFrame:CGRectZero];
25
+#else
26
_alertWindow = [self getUIWindowFromScene];
-
-#if !TARGET_OS_VISION
27
+
28
29
UIWindow *keyWindow = RCTSharedApplication().keyWindow;
30
if (keyWindow) {
0 commit comments