[native-stack] Swipe back is not working
See original GitHub issueMoved 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:
- Created 4 years ago
- Reactions:4
- Comments:10 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
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()