Skip to content

Conversation

@AndreiCalazans
Copy link
Contributor

@AndreiCalazans AndreiCalazans commented Dec 4, 2025

Summary:

We have had two bugs related to iOS modals. The first is when dismissing and presenting different modals in parallel, when we do this we end up in a weird state where the second modal is not presented and seems to block the UI from receiving touches. The second bug is when trying to present a second modal while a first one is presented.

This PR introduces some extra logic to ensure we always present the latest modal in the active view. This ensures we never have the parallel bug plus allows us to present multiple modals mimicking the current behavior from Android as well.

BEFORE AFTER
notworkingdemo.mp4
working-success.mp4

The new behavior also matches exactly how Android already works:

rn-tester-android.mov

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 4, 2025
<RNTesterText>
Edit "RNTesterPlayground.js" to change this file
</RNTesterText>
<Example />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this to demo the problem, i can remove and add it to the Modal examples if you team decides this is mergeable.

@AndreiCalazans AndreiCalazans marked this pull request as ready for review December 4, 2025 16:28
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants