Browse Source

Updated default screen transition

Arnaud Vergnet 1 year ago
parent
commit
b7d6c98025
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      src/navigation/MainNavigator.js

+ 5
- 4
src/navigation/MainNavigator.js View File

@@ -30,15 +30,16 @@ import ClubAboutScreen from "../screens/Amicale/Clubs/ClubAboutScreen";
30 30
 import ClubDisplayScreen from "../screens/Amicale/Clubs/ClubDisplayScreen";
31 31
 import {createScreenCollapsibleStack, getWebsiteStack} from "../utils/CollapsibleUtils";
32 32
 
33
+const modalTransition = Platform.OS === 'ios' ? TransitionPresets.ModalPresentationIOS : TransitionPresets.ModalSlideFromBottomIOS;
34
+
35
+const screenTransition = TransitionPresets.SlideFromRightIOS;
36
+
33 37
 const defaultScreenOptions = {
34 38
     gestureEnabled: true,
35 39
     cardOverlayEnabled: true,
36
-    ...TransitionPresets.SlideFromRightIOS,
40
+    ...screenTransition,
37 41
 };
38 42
 
39
-const modalTransition = Platform.OS === 'ios' ? TransitionPresets.ModalPresentationIOS : TransitionPresets.ModalSlideFromBottomIOS;
40
-
41
-const screenTransition = Platform.OS === 'ios' ? TransitionPresets.SlideFromRightIOS : TransitionPresets.ScaleFromCenterAndroid;
42 43
 
43 44
 const MainStack = createStackNavigator();
44 45
 

Loading…
Cancel
Save