Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion ios/RCCManagerModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ -(void)dismissAllModalPresenters:(NSMutableArray*)allPresentedViewControllers re
{
counter++;

[[RCCManager sharedIntance] unregisterController:viewController];
if ([self viewControllerIsModal:viewController]) {
[[RCCManager sharedIntance] unregisterController:viewController];
}

if (viewController.presentedViewController != nil)
{
dispatch_semaphore_t dismiss_sema = dispatch_semaphore_create(0);
Expand Down
4 changes: 2 additions & 2 deletions src/deprecated/platformSpecificDeprecated.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,8 @@ async function dismissModal(params) {
return await Modal.dismissController(params.animationType);
}

function dismissAllModals(params) {
Modal.dismissAllControllers(params.animationType);
async function dismissAllModals(params) {
return await Modal.dismissAllControllers(params.animationType);
}

function showLightBox(params) {
Expand Down