React-native-screens: [native-stack] Swipe back is not working

Created on 22 Feb 2020  路  10Comments  路  Source: software-mansion/react-native-screens

_Moved from react-navigation/react-navigation#6809. Originally opened by @berkaey_


Current Behavior

with

"@react-navigation/native-stack": "^5.0.0",
"react-native-screens": "^2.0.0-beta.2",

swipe back is not work on iOS 13.

Expected Behavior

It should work line in stack navigator.

How to reproduce

just create a simple 2 view app and swipe back.

https://snack.expo.io/@berkaey/routing-test << some how working in this demo

Your Environment

| software | version |
| ------------------------------ | ------- |
| iOS or Android | 13.3
| @react-navigation/native |
| @react-navigation/native-stack | 5
| react-native-screens | 2.0.0-beta.2
| react-native | 0.61.5
| expo |
| node |
| npm or yarn |

bug native-stack

Most helpful comment

@smancebo I opened your snack and this is the result, so I am not sure if I am doing something wrong or maybe there is a problem with configuration on your side.

Simulator Screen Recording - iPhone SE (2nd generation) - 2021-05-04 at 11 42 05

All 10 comments

Confirm swipe back stops working with react-native-screens version 2.0.0 beta 11

@berkaey @alexichristakis can you repro the bug on the newest master branch?

I used the snack provided and couldn't repro the issue on the newest branch. Looks like it has been fixed in one of the newer versions. I am closing it then. Feel free to comment if I am wrong.

I'm working with the v2.0.7 and have this problem. I have a NativeStack.Navigator inside a React Navigation's Tab.Navigator and can't swipe back.

Help me pls! 馃槶

just for clarify, NativeStack = createNativeStackNavigator()

@denispixi can you provide a repo/smack with minimal configuration needed to reproduce the issue?

Any update on this issue, is still happening on v3.1.1, my scenario is same as @denispixi

Here is an snack with the current issue @WoLewicki
https://snack.expo.io/Lfo4auA9Y

@smancebo I opened your snack and this is the result, so I am not sure if I am doing something wrong or maybe there is a problem with configuration on your side.

Simulator Screen Recording - iPhone SE (2nd generation) - 2021-05-04 at 11 42 05

Thanks @WoLewicki, running same code on physical device (iOS 14.4) works just fine, but running on actual simulator does not (iOS 14.5, xcode 12.5). i will update the phone to iOS 14.5 and will test again just to confirm if it is something related to iOS 14.5 version

I tested it on the simulator with Xcode 12.5 and newest iOS.

Was this page helpful?
0 / 5 - 0 ratings