Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

From left to right window animation with react-navigation?

Is there a way to implement animation that goes from left to right with navigate() function in react-navigation ?

Thanks in advance.

like image 250
burakkesepara Avatar asked Nov 07 '22 15:11

burakkesepara


1 Answers

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

like image 68
KahTim Avatar answered Dec 01 '22 02:12

KahTim