React-native-screens: Can't dismiss full screen modals on iOS after upgrade to 2.11.0

Created on 16 Sep 2020  路  5Comments  路  Source: software-mansion/react-native-screens

After upgrading to 2.11.0, full screen modals on iOS cannot be dismissed.
canGoBack from react navigation returns true, but goBack does nothing.
I've also tried popToTop to no avail.

The stack is configured as such:

  mode="stack"
      screenOptions={{
        headerShown: false,
        stackPresentation: 'fullScreenModal',
      }}

Android works fine, and so does 'modal' stack presentation.

Downgrading to 2.10 fixes the issue.

Thank you.

All 5 comments

I am experiencing the same and can confirm that it seems to be a regression from 2.10 -> 2.11.

formSheet works fine, but as soon as you try to dismiss a fullScreenModal the UI will "freeze" and you cannot interact with anything anymore.

Looks like this regression was introduced by #600 + #613. For now, you can revert them with patch-package

Can you check if #643 fixes that bug and does not introduce new ones?

@WoLewicki I can't reproduce it anymore in #643 , seems to be fixed, thanks

I still have the same issue in both v2.11.0 and also the "fixed" commit.

May I have some assistance?

Using goBack() on a full screen modal seems to trigger this.

(Edit: I had to rewrite some of my old code that was using old React Native gesture handler code, but I got it to work. v2.11.0 did the job.)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jeveloper picture jeveloper  路  5Comments

piotrfalba picture piotrfalba  路  5Comments

bartzy picture bartzy  路  3Comments

iDuuck picture iDuuck  路  5Comments

kantorm picture kantorm  路  5Comments