-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
horizontal gestureDirection does not work for modal stack #6969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You're talking about the animation, not gesture. You need to use a horizontal animation if you want to see your screen slide horizontally. |
@satya164, thank you for the quick response! |
This is just referring to the "inverted" part. I'll clarify it. |
Thanks for pointing me in the right direction, @satya164!
And applying it in the navgiationOptions:
|
excuse me but i got an error with the multiply variable, is not defined. |
import {Animated} from 'react-native';
// then use it as
Animated.multiply() |
Current Behavior
navigationOptions: {gestureDirection: 'horizontal'}
does not work for stack navigators withmode: 'modal'
. UsinggestureDirection: 'horizontal-inverted'
, leeds to a vertical-inverted gestureDirection.See my current stack navigator setup here:
Expected Behaviorx
Stack navigators with
mode: 'modal'
should allow horizontal gestureDirection.How to reproduce
Find a minimal GH repo to reproduce the issue here: https://github.com/abegehr/react-navigation-horizontal-modal-stack
The repo is based on expo and can be run easily through the expo-cli.
The repo was produced by:
expo init
with react-navigation 'tabs' template=> Please let me know if this is helpful and if I can do anything else to make the issue more clear
Your Environment
The text was updated successfully, but these errors were encountered: