question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[native-stack] Swipe back is not working

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
WoLewickicommented, May 4, 2021

@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

1reaction
denispixicommented, Jun 8, 2020

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()

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-navigation swipe to go back doesn't trigger
After experiencing the same problem, I found out that the problem was a useEffect that was being triggered over and over.
Read more >
Preventing going back - React Navigation
To make this work, you need to: Disable the swipe gesture for the screen ( gestureEnabled: false ). Override the native back button...
Read more >
How can i disable swipe back in react native navigator-React ...
Is there a way to conditionally disable the swipe to go back gesture in react native iOS? ... How can I style bottom...
Read more >
Back Gesture not Working : r/android_beta - Reddit
The swipe from the bottom problem looks like a problem with the pixel launcher. Maybe clear cache and/or data?
Read more >
Navigating Between Screens - React Native
This native-stack navigator uses the native APIs: UINavigationController on iOS and Fragment on Android so that navigation built with ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found