Skip to content

[iOS] waitForRender on showModal breaks modal layout and dismiss #7162

@FransTwisk

Description

@FransTwisk

🐛 Bug Report

On iOS, using waitForRender on showModal results in broken modal rendering, and when dismissing a modal it results in a black screen on previous (root) stack.

Have you read the Contributing Guidelines on issues?

Yes

To Reproduce

  1. Use following on (global) navigator options:
  animations: {
    showModal: {
      waitForRender: false,
    },
  },
  1. Open modal in iOS
  2. Dismiss modal in iOS

Expected behavior

Using waitForRender: true on showModal should not affect the (default) layout of modals on iOS, and should just return to previous stack, instead or rendering a black screen when dismissing.

Actual Behavior

  1. Modal is rendered sticked to top instead of bottom of screen.

Screenshot 2021-06-21 at 20 51 59

  1. When dismissing, the previous stack is not rendered, but black.

Screenshot 2021-06-21 at 20 52 02

Your Environment

  • React Native Navigation version: 7.16.0
  • React Native version: 0.64.2
  • Platform(s) (iOS, Android, or both?): iOS
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator & Device, iOS 12 (probably others as well), Debug & Release

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions