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.

gesturesEnabled not supported for createNativeStackNavigator()

See original GitHub issue

Hi, 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
WoLewickicommented, Apr 21, 2020

it’s mean my app will lack of swipe-to-back if I switch to createNativeStackNavigator?

Yes since it is not native behavior.

Ok, so I am closing it. Feel free to comment if anything is wrong.

0reactions
WoLewickicommented, May 12, 2020

Prop’s name is gestureEnabled, maybe this is the problem @mikehuebner?

Read more comments on GitHub >

github_iconTop 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 ( &lt ...
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