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