Skip to content

fix for fading modal dismissal#8192

Merged
markdevocht merged 1 commit intomasterfrom
bugfix/black-screen-after-modal-with-animation-is-dismissed-#8083
Jan 1, 2026
Merged

fix for fading modal dismissal#8192
markdevocht merged 1 commit intomasterfrom
bugfix/black-screen-after-modal-with-animation-is-dismissed-#8083

Conversation

@markdevocht
Copy link
Contributor

The Problem
When dismissing a modal with custom animations, the screen behind (the presenting view controller) was turning black after the animation completed.

Root Cause
The original code didn't differentiate between present and dismiss transitions. It treated both the same way, which violates UIKit's expected behavior.

Screen.Recording.2025-12-31.at.15.00.40.mov

@gosha212 gosha212 force-pushed the bugfix/black-screen-after-modal-with-animation-is-dismissed-#8083 branch from fe8b819 to 9108c00 Compare January 1, 2026 13:00
@markdevocht markdevocht merged commit 0855d45 into master Jan 1, 2026
1 check passed
@markdevocht markdevocht deleted the bugfix/black-screen-after-modal-with-animation-is-dismissed-#8083 branch February 5, 2026 13:49
@manuhook
Copy link

manuhook commented Feb 5, 2026

Hi @markdevocht, I'm style having an issue even with this fix on iOS.

I have no animation when I'm dismissing the modal.
The code below was working on old arch. No problem on showModal.
I'm using RNN 8.7.3

options: {
      modalPresentationStyle: 'overCurrentContext',
      animations: {
        showModal: {
          enter: {
            alpha: {
              from: 0,
              to: 1,
              duration: 400,
            },
          },
        },
        dismissModal: {
          exit: {
            alpha: {
              from: 1,
              to: 0,
              duration: 200,
            },
          },
        },
      },
  }

Have you an idea ?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[iOS] Black screen after a modal with animation is dismissed

3 participants