diff --git a/ios/RNSScreenStack.mm b/ios/RNSScreenStack.mm index c8896735e..bfeeb002c 100644 --- a/ios/RNSScreenStack.mm +++ b/ios/RNSScreenStack.mm @@ -1281,7 +1281,7 @@ - (void)invalidate // with modal presentation or foreign modal presented from inside a Screen. - (void)dismissAllRelatedModals { - // [_controller dismissViewControllerAnimated:YES completion:nil]; + [_controller.presentedViewController dismissViewControllerAnimated:YES completion:nil]; // This loop seems to be excessive. Above message send to `_controller` should // be enough, because system dismisses the controllers recursively,