@@ -938,76 +938,6 @@ export interface PopupOptions {
938
938
preventDismissOnPress ?: boolean ;
939
939
}
940
940
941
- //
942
- // Navigator
943
- // ----------------------------------------------------------------------
944
- export enum NavigatorSceneConfigType {
945
- FloatFromRight ,
946
- FloatFromLeft ,
947
- FloatFromBottom ,
948
- Fade ,
949
- FadeWithSlide
950
- }
951
-
952
- export interface NavigatorRoute {
953
- routeId : number ;
954
- // Route's animation configuration
955
- sceneConfigType : NavigatorSceneConfigType ;
956
-
957
- // NOTE: The following props are for the experimental navigator.
958
- // They aren't considered when working with the standard navigator.
959
- // Optional gesture response distance override
960
- // 0 is equivalent to disabling gestures
961
- gestureResponseDistance ?: number ;
962
- // Optional custom scene config
963
- customSceneConfig ?: CustomNavigatorSceneConfig ;
964
- }
965
-
966
- // NOTE: Experimental navigator only
967
- export type NavigationTransitionSpec = {
968
- duration ?: number ;
969
-
970
- // NOTE: Elastic and bounce easing will not work as expected due to how the navigator interpolates styles
971
- easing ?: Animated . EasingFunction ;
972
- } ;
973
-
974
- // NOTE: Experimental navigator only
975
- export type NavigationTransitionStyleConfig = {
976
- // By default input range is defined as [index - 1, index, index + 1];
977
- // Input and output ranges must contain the same number of elements
978
- inputRange ?: number [ ] ;
979
- opacityOutput : number | number [ ] ;
980
- scaleOutput : number | number [ ] ;
981
- translateXOutput : number | number [ ] ;
982
- translateYOutput : number | number [ ] ;
983
- } ;
984
-
985
- // NOTE: Experimental navigator only
986
- export type CustomNavigatorSceneConfig = {
987
- // Optional transition styles
988
- transitionStyle ?: ( sceneIndex : number , sceneDimensions : Dimensions ) => NavigationTransitionStyleConfig ;
989
- // Optional overrides for duration, easing, and timing
990
- transitionSpec ?: NavigationTransitionSpec ;
991
- // Optional cardStyle override
992
- cardStyle ?: ViewStyleRuleSet ;
993
- // Optionally hide drop shadow
994
- hideShadow ?: boolean ;
995
- // Optionally flip the visual order of the last two scenes
996
- presentBelowPrevious ?: boolean ;
997
- } ;
998
-
999
- export interface NavigatorProps extends CommonProps {
1000
- renderScene : ( route : NavigatorRoute ) => JSX . Element ;
1001
- navigateBackCompleted ?: ( ) => void ;
1002
- // NOTE: Arguments are only passed to transitionStarted by the experimental navigator
1003
- transitionStarted ?: ( progress ?: RX . IAnimatedValue ,
1004
- toRouteId ?: string , fromRouteId ?: string ,
1005
- toIndex ?: number , fromIndex ?: number ) => void ;
1006
- transitionCompleted ?: ( ) => void ;
1007
- cardStyle ?: ViewStyleRuleSet ;
1008
- children ?: ReactNode ;
1009
- }
1010
-
1011
941
//
1012
942
// Alert
1013
943
//
0 commit comments