plmok61 / react-navigation-transitions

Custom transitions for react-navigation
MIT License
456 stars 43 forks source link

Support react navigation v5 #31

Open umam006 opened 4 years ago

basurahan commented 4 years ago

same problem here i dont want to use the old version react natvigation

thijs-qv commented 4 years ago

React navigation v5's StackNavigator supports custom transitions out-of-the-box. https://reactnavigation.org/docs/stack-navigator/#animation-related-options

ghasemikasra39 commented 4 years ago

+1

metion commented 4 years ago

solution?

indralukmana commented 4 years ago

As thijs-qv said

React navigation v5's StackNavigator supports custom transitions out-of-the-box. https://reactnavigation.org/docs/stack-navigator/#animation-related-options

an example code snippet for individual screen:

           <RootStack.Screen
              name="Notification"
              component={NotificationScreen}
              options={{ gestureDirection: 'vertical-inverted' }}
            />

ThegestureDirection will change the direction of the default animation for ReactNavigation 5, if I think the default is sliding from right to left. That option will change the sliding from top to bottom.