You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`none` - The screen transition doesn't have any animation. This is the default value.
@@ -1013,8 +1013,8 @@ We also export various configs from the library with ready-made configs that you
1013
1013
1014
1014
#### `TransitionSpecs`
1015
1015
1016
-
-`CrossFadeSpec` - Configuration for a cross-fade animation between screens.
1017
-
-`ShiftingSpec` - Configuration for a shifting animation between screens.
1016
+
-`FadeSpec` - Configuration for a cross-fade animation between screens.
1017
+
-`ShiftSpec` - Configuration for a shifting animation between screens.
1018
1018
1019
1019
Example:
1020
1020
@@ -1051,7 +1051,7 @@ import { TransitionSpecs } from '@react-navigation/bottom-tabs';
1051
1051
component={Profile}
1052
1052
options={{
1053
1053
// highlight-start
1054
-
transitionSpec:TransitionSpecs.CrossFadeSpec,
1054
+
transitionSpec:TransitionSpecs.FadeSpec,
1055
1055
// highlight-end
1056
1056
}}
1057
1057
/>;
@@ -1063,7 +1063,7 @@ import { TransitionSpecs } from '@react-navigation/bottom-tabs';
1063
1063
#### `SceneStyleInterpolators`
1064
1064
1065
1065
-`forFade` - Cross-fade animation for the screen transition where the new screen fades in and the old screen fades out.
1066
-
-`forShifting` - Shifting animation for the screen transition where the screens slightly shift to left/right.
1066
+
-`forShift` - Shifting animation for the screen transition where the screens slightly shift to left/right.
1067
1067
1068
1068
Example:
1069
1069
@@ -1114,7 +1114,7 @@ import { SceneStyleInterpolators } from '@react-navigation/bottom-tabs';
1114
1114
We export transition presets that bundle various sets of these options together. A transition preset is an object containing a few animation-related screen options exported under `TransitionPresets`. Currently the following presets are available:
1115
1115
1116
1116
-`FadeTransition` - Cross-fade animation for the screen transition where the new screen fades in and the old screen fades out.
1117
-
-`ShiftingTransition` - Shifting animation for the screen transition where the screens slightly shift to left/right.
1117
+
-`ShiftTransition` - Shifting animation for the screen transition where the screens slightly shift to left/right.
1118
1118
1119
1119
You can spread these presets in `options` to customize the animation for a screen:
0 commit comments