Skip to content

[iOS] When modals are opened in two different stacks, then closing all modals freezes the screen #2988

@Ubax

Description

@Ubax

Description

When multiple screens with presentation modal are opened in parent stack from a modal screen in child stack, then when closing them all at once only the first one is removed on native side. The one below it stays frozen with only screenshot as a content.

If the modals are opened from a screen without stack presentation, they work as expected.

Modals closing correctly with no screen presentation

modal-screen-working-from-stack.mov

Modals not closing correctly when opened from screen with modal presentation

modal-screen-issue.mov

Steps to reproduce

  1. Open modal screen in one stack
  2. Open at least 2 modal screens in parent stack
  3. Close all modals in parent screen at once

Snack or a link to a repository

https://github.com/Ubax/screens-modal-issue/blob/main/App.js

Screens version

4.11.1

React Native version

0.79.4

Platforms

iOS

JavaScript runtime

None

Workflow

Expo managed workflow

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

iOS simulator

Device model

No response

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform:iosIssue related to iOS part of the libraryrepro-providedA reproduction with a snack or repo is provided

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions