diff --git a/ios/RNIModalSheetView/RNIModalSheetViewController.swift b/ios/RNIModalSheetView/RNIModalSheetViewController.swift index dc9f31a..073fe8f 100644 --- a/ios/RNIModalSheetView/RNIModalSheetViewController.swift +++ b/ios/RNIModalSheetView/RNIModalSheetViewController.swift @@ -156,8 +156,20 @@ open class RNIModalSheetViewController: ModalSheetViewControllerLifecycleNotifie let animationBlocks = bottomOverlayController.createExitAnimationBlocks(); animationBlocks.start(); - transitionCoordinator.animate { context in - animationBlocks.end(); + transitionCoordinator.animate { + if $0.isCancelled { + animationBlocks.start(); + + } else { + animationBlocks.end(); + }; + + } completion: { context in + guard context.isCancelled else { + return + }; + + animationBlocks.start(); }; }; };