diff --git a/ios/RNIModalSheetView/RNIModalSheetViewDelegate.swift b/ios/RNIModalSheetView/RNIModalSheetViewDelegate.swift index fb08454..5fa10f6 100644 --- a/ios/RNIModalSheetView/RNIModalSheetViewDelegate.swift +++ b/ios/RNIModalSheetView/RNIModalSheetViewDelegate.swift @@ -226,10 +226,7 @@ extension RNIModalSheetViewDelegate: RNIContentViewDelegate { fallbackValue: true ); - modalSheetController.dismiss(animated: isAnimated) { - self.discardCurrentModalControllerIfNeeded(); - }; - + modalSheetController.dismiss(animated: isAnimated); resolveBlock([:]); case "getModalMetrics": @@ -369,6 +366,8 @@ extension RNIModalSheetViewDelegate: ModalViewControllerEventsNotifiable { "isAnimated": isAnimated, ] ); + + self.discardCurrentModalControllerIfNeeded(); }; };