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.

How to enable/disable NativeStackNavigationOptions gestureEnabled with animated values ?

See original GitHub issue

I have been able to disable gestureEnabled with PanGestureHandler but I wasn’t able to enable / disable either the stack props not PanGestureHandler enable/disabled props use Animated.Value

does any body have any idea ( possible hacky way ) to do that ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
a-eidcommented, Dec 8, 2020

@WoLewicki @satya164 that is the case indeed, it works great. thank you.

1reaction
a-eidcommented, Dec 8, 2020

@WoLewicki are u saying that rerender the stack wouldn’t re-render the screens inside of it ?

I thought it does, I never tried actually I’ll try and see whether or not it does rerender the nested screens, thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stack Navigator | React Navigation
When pop is used, the pop animation is applied to the screen being replaced. gestureEnabled ​. Whether you can use gestures to dismiss...
Read more >
How to disable react navigation's stack navigator transition?
If you're using @react-navigation/native-stack you can disable transition by using animation option of Stack.Navigator component.
Read more >
createStackNavigator - React Navigation - Netlify
These headers include animations to smoothly switch to one another. ... Pass 0 or a custom value to disable the default behavior, and...
Read more >
Custom Screen Transitions in React Navigation | blog {callstack}
Wondering how to custom a screen transition animation in React ... When the screen in first starts opening, the value will be 0...
Read more >
Re-writing React Navigation Stack | by Satyajit Sahoo
In addition, it's now also possible to enable gestures for both vertical and horizontal transition animations (a highly requested feature).
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