Is there a way to implement animation that goes from left to right with navigate() function in react-navigation ?
Thanks in advance.
Answered by satya164 in react-navigation/stack github repo, using gestureDirection: 'horizontal-inverted'
in defaultNavigationOptions/navigationOptions
Screen: {
screen: Screen,
navigationOptions: {
...TransitionPresets.SlideFromRightIOS,
gestureDirection: 'horizontal-inverted',
},
},
related links below:
https://github.com/react-navigation/stack/issues/377#issuecomment-578504696
https://reactnavigation.org/docs/en/stack-navigator.html#animation-related-options
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With