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 4599faf commit 31185ebCopy full SHA for 31185eb
packages/react-native/React/CoreModules/RCTDevMenu.mm
@@ -424,9 +424,15 @@ - (RCTDevMenuAlertActionHandler)alertActionHandlerForDevItem:(RCTDevMenuItem *__
424
{
425
return ^(__unused UIAlertAction *action) {
426
if (item) {
427
+#if TARGET_OS_VISION
428
+ /// Execute this handler after the action sheet is dismissed to properly retrieve window when using SwiftUI entry point.
429
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0), dispatch_get_main_queue(), ^{
430
+ [item callHandler];
431
+ });
432
+#else
433
[item callHandler];
434
+#endif
435
}
-
436
self->_actionSheet = nil;
437
};
438
0 commit comments