react-navigation-transitions icon indicating copy to clipboard operation
react-navigation-transitions copied to clipboard

Support react navigation v5

Open umam006 opened this issue 4 years ago • 6 comments

umam006 avatar Mar 18 '20 22:03 umam006

Did you find any solution?

lee-corey avatar Mar 19 '20 03:03 lee-corey

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

basurahan avatar Mar 21 '20 05:03 basurahan

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

thijs-qv avatar Apr 01 '20 07:04 thijs-qv

+1

ghasemikasra39 avatar May 01 '20 14:05 ghasemikasra39

solution?

metion avatar Jun 12 '20 08:06 metion

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.

indralukmana avatar Jul 15 '20 04:07 indralukmana