Skip to content

Navigation.dismissAllModals() Shows black screen on IOSΒ #7789

@HunainHumail

Description

@HunainHumail

What happened?

I am using this function:

  const onCloseClick = () => {
    return Navigation.dismissAllModals();
  };

But the function is not working as expected and it is causing bug in IOS. Android is working fine.
dismissAllModals() makes the whole screen black on IOS.

I am using
"react": "18.2.0",
"react-native": "0.72.4",
"react-native-navigation": "^7.37.0",

IOS: 16.1 (simulator)
Xcode 14.1

What was the expected behaviour?

The modals should close and the app should work normally.

Was it tested on latest react-native-navigation?

  • I have tested this issue on the latest react-native-navigation release and it still reproduces.

Help us reproduce this issue!

Just use the latest react native navigation on IOS 16.1 with latest react native version. Use this function:

Navigation.dismissAllModals();

It will make the screen black.

In what environment did this happen?

React Native Navigation version: 7.37.0
React Native version: 0.72.4
Has Fabric (React Native's new rendering system) enabled: (yes/no) YES
Node version: v20.5.1
Device model: iPhone 14 Pro (Simulator)
iOS version: 16.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions