gesturesEnabled not supported for createNativeStackNavigator()
See original GitHub issueHi, I changed createStackNavigator
to createNativeStackNavigator
and my swipe to back feature is not work anymore on android.
import { createBottomTabNavigator, createStackNavigator } from 'react-navigation';
import createNativeStackNavigator from 'react-native-screens/createNativeStackNavigator';
Is createNativeStackNavigator already support the gesturesEnabled
prop from ‘react-navigation’?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Stack Navigator | React Navigation
gestureEnabled . Whether you can use gestures to dismiss this screen. Defaults to true on iOS, false on Android. Gestures are not supported...
Read more >gesturesEnabled: false doesn't work in React Native
Try gestureEnabled:false ? without "s". Update after @LPFJ tried, it worked like this: const AppNavigator = createStackNavigator({ ...
Read more >Native Stack Navigator vs Stack Navigator | React Navigation v5
The createNativeStackNavigator not only enables you to achieve the native look and feel of the actual platform but it also provides native ...
Read more >createStackNavigator - React Navigation - Netlify
gestureEnabled. Whether you can use gestures to dismiss this screen. Defaults to true on iOS, false on Android. Gestures are not supported on...
Read more >stack navigator Code Example
//react navigation 5 import { createStackNavigator } from '@react-navigation/stack'; const Stack = createStackNavigator(); function MyStack() { return ( < ...
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
Yes since it is not native behavior.
Ok, so I am closing it. Feel free to comment if anything is wrong.
Prop’s name is
gestureEnabled
, maybe this is the problem @mikehuebner?