@react-navigation/stack 7.2.8 → 7.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/typescript/src/TransitionConfigs/CardStyleInterpolators.d.ts.map +1 -0
- package/lib/typescript/src/TransitionConfigs/HeaderStyleInterpolators.d.ts.map +1 -0
- package/lib/typescript/src/TransitionConfigs/TransitionPresets.d.ts.map +1 -0
- package/lib/typescript/src/TransitionConfigs/TransitionSpecs.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/navigators/createStackNavigator.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/lib/typescript/src/utils/CardAnimationContext.d.ts.map +1 -0
- package/lib/typescript/src/utils/GestureHandlerRefContext.d.ts.map +1 -0
- package/lib/typescript/src/utils/ModalPresentationContext.d.ts.map +1 -0
- package/lib/typescript/src/utils/conditional.d.ts.map +1 -0
- package/lib/typescript/src/utils/findLastIndex.d.ts.map +1 -0
- package/lib/typescript/src/utils/getDistanceForDirection.d.ts.map +1 -0
- package/lib/typescript/src/utils/getInvertedMultiplier.d.ts.map +1 -0
- package/lib/typescript/src/utils/getModalRoutesKeys.d.ts.map +1 -0
- package/lib/typescript/src/utils/getShadowStyle.d.ts.map +1 -0
- package/lib/typescript/src/utils/memoize.d.ts.map +1 -0
- package/lib/typescript/src/utils/throttle.d.ts.map +1 -0
- package/lib/typescript/src/utils/useCardAnimation.d.ts.map +1 -0
- package/lib/typescript/src/utils/useGestureHandlerRef.d.ts.map +1 -0
- package/lib/typescript/src/utils/useKeyboardManager.d.ts.map +1 -0
- package/lib/typescript/src/views/GestureHandler.android.d.ts.map +1 -0
- package/lib/typescript/src/views/GestureHandler.d.ts.map +1 -0
- package/lib/typescript/src/views/GestureHandler.ios.d.ts.map +1 -0
- package/lib/typescript/src/views/GestureHandlerNative.d.ts.map +1 -0
- package/lib/typescript/src/views/Header/Header.d.ts.map +1 -0
- package/lib/typescript/src/views/Header/HeaderContainer.d.ts.map +1 -0
- package/lib/typescript/src/views/Header/HeaderSegment.d.ts.map +1 -0
- package/lib/typescript/src/views/Screens.d.ts.map +1 -0
- package/lib/typescript/src/views/Stack/Card.d.ts.map +1 -0
- package/lib/typescript/src/views/Stack/CardContainer.d.ts.map +1 -0
- package/lib/typescript/src/views/Stack/CardSheet.d.ts.map +1 -0
- package/lib/typescript/src/views/Stack/CardStack.d.ts.map +1 -0
- package/lib/typescript/src/views/Stack/StackView.d.ts.map +1 -0
- package/package.json +12 -26
- package/lib/typescript/commonjs/package.json +0 -1
- package/lib/typescript/commonjs/src/TransitionConfigs/CardStyleInterpolators.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/TransitionConfigs/HeaderStyleInterpolators.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/TransitionConfigs/TransitionPresets.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/TransitionConfigs/TransitionSpecs.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/navigators/createStackNavigator.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/CardAnimationContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/GestureHandlerRefContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/ModalPresentationContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/conditional.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/findLastIndex.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/getDistanceForDirection.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/getInvertedMultiplier.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/getModalRoutesKeys.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/getShadowStyle.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/memoize.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/throttle.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/useCardAnimation.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/useGestureHandlerRef.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/useKeyboardManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/GestureHandler.android.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/GestureHandler.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/GestureHandler.ios.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/GestureHandlerNative.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Header/Header.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Header/HeaderContainer.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Header/HeaderSegment.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Screens.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Stack/Card.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Stack/CardContainer.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Stack/CardSheet.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Stack/CardStack.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Stack/StackView.d.ts.map +0 -1
- package/lib/typescript/module/src/TransitionConfigs/CardStyleInterpolators.d.ts +0 -43
- package/lib/typescript/module/src/TransitionConfigs/CardStyleInterpolators.d.ts.map +0 -1
- package/lib/typescript/module/src/TransitionConfigs/HeaderStyleInterpolators.d.ts +0 -23
- package/lib/typescript/module/src/TransitionConfigs/HeaderStyleInterpolators.d.ts.map +0 -1
- package/lib/typescript/module/src/TransitionConfigs/TransitionPresets.d.ts +0 -50
- package/lib/typescript/module/src/TransitionConfigs/TransitionPresets.d.ts.map +0 -1
- package/lib/typescript/module/src/TransitionConfigs/TransitionSpecs.d.ts +0 -46
- package/lib/typescript/module/src/TransitionConfigs/TransitionSpecs.d.ts.map +0 -1
- package/lib/typescript/module/src/index.d.ts +0 -29
- package/lib/typescript/module/src/index.d.ts.map +0 -1
- package/lib/typescript/module/src/navigators/createStackNavigator.d.ts +0 -16
- package/lib/typescript/module/src/navigators/createStackNavigator.d.ts.map +0 -1
- package/lib/typescript/module/src/types.d.ts +0 -541
- package/lib/typescript/module/src/types.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/CardAnimationContext.d.ts +0 -4
- package/lib/typescript/module/src/utils/CardAnimationContext.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/GestureHandlerRefContext.d.ts +0 -3
- package/lib/typescript/module/src/utils/GestureHandlerRefContext.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/ModalPresentationContext.d.ts +0 -3
- package/lib/typescript/module/src/utils/ModalPresentationContext.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/conditional.d.ts +0 -10
- package/lib/typescript/module/src/utils/conditional.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/findLastIndex.d.ts +0 -2
- package/lib/typescript/module/src/utils/findLastIndex.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/getDistanceForDirection.d.ts +0 -3
- package/lib/typescript/module/src/utils/getDistanceForDirection.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/getInvertedMultiplier.d.ts +0 -3
- package/lib/typescript/module/src/utils/getInvertedMultiplier.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/getModalRoutesKeys.d.ts +0 -4
- package/lib/typescript/module/src/utils/getModalRoutesKeys.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/getShadowStyle.d.ts +0 -27
- package/lib/typescript/module/src/utils/getShadowStyle.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/memoize.d.ts +0 -2
- package/lib/typescript/module/src/utils/memoize.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/throttle.d.ts +0 -2
- package/lib/typescript/module/src/utils/throttle.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/useCardAnimation.d.ts +0 -2
- package/lib/typescript/module/src/utils/useCardAnimation.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/useGestureHandlerRef.d.ts +0 -3
- package/lib/typescript/module/src/utils/useGestureHandlerRef.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/useKeyboardManager.d.ts +0 -6
- package/lib/typescript/module/src/utils/useKeyboardManager.d.ts.map +0 -1
- package/lib/typescript/module/src/views/GestureHandler.android.d.ts +0 -2
- package/lib/typescript/module/src/views/GestureHandler.android.d.ts.map +0 -1
- package/lib/typescript/module/src/views/GestureHandler.d.ts +0 -15
- package/lib/typescript/module/src/views/GestureHandler.d.ts.map +0 -1
- package/lib/typescript/module/src/views/GestureHandler.ios.d.ts +0 -2
- package/lib/typescript/module/src/views/GestureHandler.ios.d.ts.map +0 -1
- package/lib/typescript/module/src/views/GestureHandlerNative.d.ts +0 -5
- package/lib/typescript/module/src/views/GestureHandlerNative.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Header/Header.d.ts +0 -4
- package/lib/typescript/module/src/views/Header/Header.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Header/HeaderContainer.d.ts +0 -19
- package/lib/typescript/module/src/views/Header/HeaderContainer.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Header/HeaderSegment.d.ts +0 -14
- package/lib/typescript/module/src/views/Header/HeaderSegment.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Screens.d.ts +0 -15
- package/lib/typescript/module/src/views/Screens.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Stack/Card.d.ts +0 -78
- package/lib/typescript/module/src/views/Stack/Card.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Stack/CardContainer.d.ts +0 -61
- package/lib/typescript/module/src/views/Stack/CardContainer.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Stack/CardSheet.d.ts +0 -14
- package/lib/typescript/module/src/views/Stack/CardSheet.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Stack/CardStack.d.ts +0 -66
- package/lib/typescript/module/src/views/Stack/CardStack.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Stack/StackView.d.ts +0 -51
- package/lib/typescript/module/src/views/Stack/StackView.d.ts.map +0 -1
- /package/lib/typescript/{module/package.json → package.json} +0 -0
- /package/lib/typescript/{commonjs/src → src}/TransitionConfigs/CardStyleInterpolators.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/TransitionConfigs/HeaderStyleInterpolators.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/TransitionConfigs/TransitionPresets.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/TransitionConfigs/TransitionSpecs.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/navigators/createStackNavigator.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/types.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/CardAnimationContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/GestureHandlerRefContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/ModalPresentationContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/conditional.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/findLastIndex.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/getDistanceForDirection.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/getInvertedMultiplier.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/getModalRoutesKeys.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/getShadowStyle.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/memoize.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/throttle.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/useCardAnimation.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/useGestureHandlerRef.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/useKeyboardManager.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/GestureHandler.android.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/GestureHandler.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/GestureHandler.ios.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/GestureHandlerNative.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Header/Header.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Header/HeaderContainer.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Header/HeaderSegment.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Screens.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Stack/Card.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Stack/CardContainer.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Stack/CardSheet.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Stack/CardStack.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Stack/StackView.d.ts +0 -0
|
@@ -1,541 +0,0 @@
|
|
|
1
|
-
import type { HeaderBackButton, HeaderBackButtonDisplayMode, HeaderBackButtonProps, HeaderOptions, HeaderTitleProps } from '@react-navigation/elements';
|
|
2
|
-
import type { DefaultNavigatorOptions, Descriptor, LocaleDirection, NavigationHelpers, NavigationProp, ParamListBase, Route, RouteProp, StackActionHelpers, StackNavigationState, StackRouterOptions, Theme } from '@react-navigation/native';
|
|
3
|
-
import type * as React from 'react';
|
|
4
|
-
import type { Animated, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
5
|
-
export type StackNavigationEventMap = {
|
|
6
|
-
/**
|
|
7
|
-
* Event which fires when a transition animation starts.
|
|
8
|
-
*/
|
|
9
|
-
transitionStart: {
|
|
10
|
-
data: {
|
|
11
|
-
closing: boolean;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Event which fires when a transition animation ends.
|
|
16
|
-
*/
|
|
17
|
-
transitionEnd: {
|
|
18
|
-
data: {
|
|
19
|
-
closing: boolean;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Event which fires when navigation gesture starts.
|
|
24
|
-
*/
|
|
25
|
-
gestureStart: {
|
|
26
|
-
data: undefined;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Event which fires when navigation gesture is completed.
|
|
30
|
-
*/
|
|
31
|
-
gestureEnd: {
|
|
32
|
-
data: undefined;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Event which fires when navigation gesture is canceled.
|
|
36
|
-
*/
|
|
37
|
-
gestureCancel: {
|
|
38
|
-
data: undefined;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
export type StackNavigationHelpers = NavigationHelpers<ParamListBase, StackNavigationEventMap> & StackActionHelpers<ParamListBase>;
|
|
42
|
-
export type StackNavigationProp<ParamList extends ParamListBase, RouteName extends keyof ParamList = keyof ParamList, NavigatorID extends string | undefined = undefined> = NavigationProp<ParamList, RouteName, NavigatorID, StackNavigationState<ParamList>, StackNavigationOptions, StackNavigationEventMap> & StackActionHelpers<ParamList>;
|
|
43
|
-
export type StackScreenProps<ParamList extends ParamListBase, RouteName extends keyof ParamList = keyof ParamList, NavigatorID extends string | undefined = undefined> = {
|
|
44
|
-
navigation: StackNavigationProp<ParamList, RouteName, NavigatorID>;
|
|
45
|
-
route: RouteProp<ParamList, RouteName>;
|
|
46
|
-
};
|
|
47
|
-
export type StackOptionsArgs<ParamList extends ParamListBase, RouteName extends keyof ParamList = keyof ParamList, NavigatorID extends string | undefined = undefined> = StackScreenProps<ParamList, RouteName, NavigatorID> & {
|
|
48
|
-
theme: Theme;
|
|
49
|
-
};
|
|
50
|
-
export type Layout = {
|
|
51
|
-
width: number;
|
|
52
|
-
height: number;
|
|
53
|
-
};
|
|
54
|
-
export type GestureDirection = 'horizontal' | 'horizontal-inverted' | 'vertical' | 'vertical-inverted';
|
|
55
|
-
export type StackAnimationName = 'default' | 'fade' | 'fade_from_bottom' | 'fade_from_right' | 'none' | 'reveal_from_bottom' | 'scale_from_center' | 'slide_from_bottom' | 'slide_from_right' | 'slide_from_left';
|
|
56
|
-
type SceneOptionsDefaults = TransitionPreset & {
|
|
57
|
-
animation: StackAnimationName;
|
|
58
|
-
gestureEnabled: boolean;
|
|
59
|
-
cardOverlayEnabled: boolean;
|
|
60
|
-
headerMode: StackHeaderMode;
|
|
61
|
-
};
|
|
62
|
-
export type Scene = {
|
|
63
|
-
/**
|
|
64
|
-
* Route object for the current screen.
|
|
65
|
-
*/
|
|
66
|
-
route: Route<string>;
|
|
67
|
-
/**
|
|
68
|
-
* Descriptor object for the screen.
|
|
69
|
-
*/
|
|
70
|
-
descriptor: Omit<StackDescriptor, 'options'> & {
|
|
71
|
-
options: Omit<StackDescriptor['options'], keyof SceneOptionsDefaults> & SceneOptionsDefaults;
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* Animated nodes representing the progress of the animation.
|
|
75
|
-
*/
|
|
76
|
-
progress: SceneProgress;
|
|
77
|
-
};
|
|
78
|
-
export type SceneProgress = {
|
|
79
|
-
/**
|
|
80
|
-
* Progress value of the current screen.
|
|
81
|
-
*/
|
|
82
|
-
current: Animated.AnimatedInterpolation<number>;
|
|
83
|
-
/**
|
|
84
|
-
* Progress value for the screen after this one in the stack.
|
|
85
|
-
* This can be `undefined` in case the screen animating is the last one.
|
|
86
|
-
*/
|
|
87
|
-
next?: Animated.AnimatedInterpolation<number>;
|
|
88
|
-
/**
|
|
89
|
-
* Progress value for the screen before this one in the stack.
|
|
90
|
-
* This can be `undefined` in case the screen animating is the first one.
|
|
91
|
-
*/
|
|
92
|
-
previous?: Animated.AnimatedInterpolation<number>;
|
|
93
|
-
};
|
|
94
|
-
export type StackHeaderMode = 'float' | 'screen';
|
|
95
|
-
export type StackPresentationMode = 'card' | 'modal';
|
|
96
|
-
export type StackHeaderOptions = Omit<HeaderOptions, 'headerLeft' | 'headerTitle' | 'headerRight'> & {
|
|
97
|
-
/**
|
|
98
|
-
* String or a function that returns a React Element to be used by the header.
|
|
99
|
-
* Defaults to screen `title` or route name.
|
|
100
|
-
*
|
|
101
|
-
* It receives `allowFontScaling`, `tintColor`, `style` and `children` in the options object as an argument.
|
|
102
|
-
* The title string is passed in `children`.
|
|
103
|
-
*/
|
|
104
|
-
headerTitle?: string | ((props: HeaderTitleProps) => React.ReactNode);
|
|
105
|
-
/**
|
|
106
|
-
* Function which returns a React Element to display on the left side of the header.
|
|
107
|
-
*/
|
|
108
|
-
headerLeft?: (props: StackHeaderLeftProps) => React.ReactNode;
|
|
109
|
-
/**
|
|
110
|
-
* Function which returns a React Element to display on the right side of the header.
|
|
111
|
-
*/
|
|
112
|
-
headerRight?: (props: StackHeaderRightProps) => React.ReactNode;
|
|
113
|
-
/**
|
|
114
|
-
* Whether back button title font should scale to respect Text Size accessibility settings. Defaults to `false`.
|
|
115
|
-
*/
|
|
116
|
-
headerBackAllowFontScaling?: boolean;
|
|
117
|
-
/**
|
|
118
|
-
* Accessibility label for the header back button.
|
|
119
|
-
*/
|
|
120
|
-
headerBackAccessibilityLabel?: string;
|
|
121
|
-
/**
|
|
122
|
-
* ID to locate this back button in tests.
|
|
123
|
-
*/
|
|
124
|
-
headerBackTestID?: string;
|
|
125
|
-
/**
|
|
126
|
-
* Title string used by the back button on iOS.
|
|
127
|
-
* Defaults to the previous screen's title, or "Back" if there's not enough space.
|
|
128
|
-
* Use `headerBackButtonDisplayMode` to customize the behavior.
|
|
129
|
-
*/
|
|
130
|
-
headerBackTitle?: string;
|
|
131
|
-
/**
|
|
132
|
-
* Title string used by the back button when `headerBackTitle` doesn't fit on the screen.
|
|
133
|
-
* Use `headerBackButtonDisplayMode` to customize the behavior.
|
|
134
|
-
*
|
|
135
|
-
* Defaults to "Back".
|
|
136
|
-
*/
|
|
137
|
-
headerBackTruncatedTitle?: string;
|
|
138
|
-
/**
|
|
139
|
-
* How the back button displays icon and title.
|
|
140
|
-
*
|
|
141
|
-
* Supported values:
|
|
142
|
-
* - "default" - Displays one of the following depending on the available space: previous screen's title, truncated title (e.g. 'Back') or no title (only icon).
|
|
143
|
-
* - "generic" – Displays one of the following depending on the available space: truncated title (e.g. 'Back') or no title (only icon).
|
|
144
|
-
* - "minimal" – Always displays only the icon without a title.
|
|
145
|
-
*
|
|
146
|
-
* Defaults to "default" on iOS, and "minimal" on other platforms.
|
|
147
|
-
*/
|
|
148
|
-
headerBackButtonDisplayMode?: HeaderBackButtonDisplayMode;
|
|
149
|
-
/**
|
|
150
|
-
* Style object for the back title.
|
|
151
|
-
*/
|
|
152
|
-
headerBackTitleStyle?: StyleProp<TextStyle>;
|
|
153
|
-
/**
|
|
154
|
-
* Function which returns a React Element to display custom image in header's back button.
|
|
155
|
-
* It receives the `tintColor` in in the options object as an argument. object.
|
|
156
|
-
* Defaults to Image component with a the default back icon image for the platform (a chevron on iOS and an arrow on Android).
|
|
157
|
-
*/
|
|
158
|
-
headerBackImage?: React.ComponentProps<typeof HeaderBackButton>['backImage'];
|
|
159
|
-
};
|
|
160
|
-
export type StackHeaderProps = {
|
|
161
|
-
/**
|
|
162
|
-
* Layout of the screen.
|
|
163
|
-
*/
|
|
164
|
-
layout: Layout;
|
|
165
|
-
/**
|
|
166
|
-
* Options for the back button.
|
|
167
|
-
*/
|
|
168
|
-
back?: {
|
|
169
|
-
/**
|
|
170
|
-
* Title of the previous screen.
|
|
171
|
-
*/
|
|
172
|
-
title: string | undefined;
|
|
173
|
-
/**
|
|
174
|
-
* The `href` to use for the anchor tag on web
|
|
175
|
-
*/
|
|
176
|
-
href: string | undefined;
|
|
177
|
-
};
|
|
178
|
-
/**
|
|
179
|
-
* Animated nodes representing the progress of the animation.
|
|
180
|
-
*/
|
|
181
|
-
progress: SceneProgress;
|
|
182
|
-
/**
|
|
183
|
-
* Options for the current screen.
|
|
184
|
-
*/
|
|
185
|
-
options: StackNavigationOptions;
|
|
186
|
-
/**
|
|
187
|
-
* Route object for the current screen.
|
|
188
|
-
*/
|
|
189
|
-
route: Route<string>;
|
|
190
|
-
/**
|
|
191
|
-
* Navigation prop for the header.
|
|
192
|
-
*/
|
|
193
|
-
navigation: StackNavigationProp<ParamListBase>;
|
|
194
|
-
/**
|
|
195
|
-
* Interpolated styles for various elements in the header.
|
|
196
|
-
*/
|
|
197
|
-
styleInterpolator: StackHeaderStyleInterpolator;
|
|
198
|
-
};
|
|
199
|
-
export type StackHeaderRightProps = {
|
|
200
|
-
/**
|
|
201
|
-
* Tint color for the header button.
|
|
202
|
-
*/
|
|
203
|
-
tintColor?: string;
|
|
204
|
-
/**
|
|
205
|
-
* Color for material ripple (Android >= 5.0 only).
|
|
206
|
-
*/
|
|
207
|
-
pressColor?: string;
|
|
208
|
-
/**
|
|
209
|
-
* Opacity when the button is pressed, used when ripple is not supported.
|
|
210
|
-
*/
|
|
211
|
-
pressOpacity?: number;
|
|
212
|
-
/**
|
|
213
|
-
* Whether it's possible to navigate back in stack.
|
|
214
|
-
*/
|
|
215
|
-
canGoBack?: boolean;
|
|
216
|
-
};
|
|
217
|
-
export type StackHeaderLeftProps = HeaderBackButtonProps & {
|
|
218
|
-
/**
|
|
219
|
-
* Whether it's possible to navigate back in stack.
|
|
220
|
-
*/
|
|
221
|
-
canGoBack?: boolean;
|
|
222
|
-
};
|
|
223
|
-
export type StackDescriptor = Descriptor<StackNavigationOptions, StackNavigationProp<ParamListBase>, RouteProp<ParamListBase>>;
|
|
224
|
-
export type StackDescriptorMap = Record<string, StackDescriptor>;
|
|
225
|
-
export type StackNavigationOptions = StackHeaderOptions & Partial<TransitionPreset> & {
|
|
226
|
-
/**
|
|
227
|
-
* String that can be displayed in the header as a fallback for `headerTitle`.
|
|
228
|
-
*/
|
|
229
|
-
title?: string;
|
|
230
|
-
/**
|
|
231
|
-
* Function that given `HeaderProps` returns a React Element to display as a header.
|
|
232
|
-
*/
|
|
233
|
-
header?: (props: StackHeaderProps) => React.ReactNode;
|
|
234
|
-
/**
|
|
235
|
-
* Whether the header floats above the screen or part of the screen.
|
|
236
|
-
* Defaults to `float` on iOS for non-modals, and `screen` for the rest.
|
|
237
|
-
*/
|
|
238
|
-
headerMode?: StackHeaderMode;
|
|
239
|
-
/**
|
|
240
|
-
* Whether to show the header. The header is shown by default.
|
|
241
|
-
* Setting this to `false` hides the header.
|
|
242
|
-
*/
|
|
243
|
-
headerShown?: boolean;
|
|
244
|
-
/**
|
|
245
|
-
* Whether a shadow is visible for the card during transitions. Defaults to `true`.
|
|
246
|
-
*/
|
|
247
|
-
cardShadowEnabled?: boolean;
|
|
248
|
-
/**
|
|
249
|
-
* Whether to have a semi-transparent dark overlay visible under the card during transitions.
|
|
250
|
-
* Defaults to `true` on Android and `false` on iOS.
|
|
251
|
-
*/
|
|
252
|
-
cardOverlayEnabled?: boolean;
|
|
253
|
-
/**
|
|
254
|
-
* Function that returns a React Element to display as a overlay for the card.
|
|
255
|
-
*/
|
|
256
|
-
cardOverlay?: (props: {
|
|
257
|
-
style: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
|
|
258
|
-
}) => React.ReactNode;
|
|
259
|
-
/**
|
|
260
|
-
* Style object for the card in stack.
|
|
261
|
-
* You can provide a custom background color to use instead of the default background here.
|
|
262
|
-
*
|
|
263
|
-
* You can also specify `{ backgroundColor: 'transparent' }` to make the previous screen visible underneath.
|
|
264
|
-
* This is useful to implement things like modal dialogs.
|
|
265
|
-
*
|
|
266
|
-
* You should also specify `detachPreviousScreen: false` in options when using a transparent background
|
|
267
|
-
* so that the previous screen isn't detached and stays below the current screen.
|
|
268
|
-
*
|
|
269
|
-
* You might also need to change the animation of the screen using `cardStyleInterpolator`
|
|
270
|
-
* so that the previous screen isn't transformed or invisible.
|
|
271
|
-
*/
|
|
272
|
-
cardStyle?: StyleProp<ViewStyle>;
|
|
273
|
-
/**
|
|
274
|
-
* Whether this screen should be presented as a modal or a regular card.
|
|
275
|
-
*
|
|
276
|
-
* Specifying this will configure several options:
|
|
277
|
-
* - `card`: Use the default OS animations for iOS and Android screen transitions.
|
|
278
|
-
* - `modal`: Use Modal animations. This changes a few things:
|
|
279
|
-
* - Sets `headerMode` to `screen` for the screen unless specified otherwise.
|
|
280
|
-
* - Changes the screen animation to match the platform behavior for modals.
|
|
281
|
-
* - `transparentModal`: Similar to `modal`. This changes following things:
|
|
282
|
-
* - Sets `headerMode` to `screen` for the screen unless specified otherwise.
|
|
283
|
-
* - Sets background color of the screen to transparent, so previous screen is visible
|
|
284
|
-
* - Adjusts the `detachPreviousScreen` option so that the previous screen stays rendered.
|
|
285
|
-
* - Prevents the previous screen from animating from its last position.
|
|
286
|
-
* - Changes the screen animation to a vertical slide animation.
|
|
287
|
-
*
|
|
288
|
-
* Defaults to 'card'.
|
|
289
|
-
*/
|
|
290
|
-
presentation?: 'card' | 'modal' | 'transparentModal';
|
|
291
|
-
/**
|
|
292
|
-
* How the screen should animate when pushed or popped.
|
|
293
|
-
*
|
|
294
|
-
* Supported values:
|
|
295
|
-
* - 'none': don't animate the screen
|
|
296
|
-
* - 'default': use the platform default animation
|
|
297
|
-
* - 'fade': fade screen in or out
|
|
298
|
-
* - 'fade_from_bottom': fade screen in or out from bottom
|
|
299
|
-
* - 'slide_from_bottom': slide in the new screen from bottom
|
|
300
|
-
* - 'slide_from_right': slide in the new screen from right
|
|
301
|
-
* - 'slide_from_left': slide in the new screen from left
|
|
302
|
-
* - 'reveal_from_bottom': reveal screen in from bottom to top
|
|
303
|
-
* - 'scale_from_center': scale screen in from center
|
|
304
|
-
*/
|
|
305
|
-
animation?: StackAnimationName;
|
|
306
|
-
/**
|
|
307
|
-
* The type of animation to use when this screen replaces another screen. Defaults to `push`.
|
|
308
|
-
* When `pop` is used, the `pop` animation is applied to the screen being replaced.
|
|
309
|
-
*/
|
|
310
|
-
animationTypeForReplace?: 'push' | 'pop';
|
|
311
|
-
/**
|
|
312
|
-
* Whether you can use gestures to dismiss this screen. Defaults to `true` on iOS, `false` on Android.
|
|
313
|
-
* Not supported on Web.
|
|
314
|
-
*/
|
|
315
|
-
gestureEnabled?: boolean;
|
|
316
|
-
/**
|
|
317
|
-
* Distance of touch start from the edge of the screen to recognize gestures.
|
|
318
|
-
* Not supported on Web.
|
|
319
|
-
*/
|
|
320
|
-
gestureResponseDistance?: number;
|
|
321
|
-
/**
|
|
322
|
-
* Number which determines the relevance of velocity for the gesture. Defaults to 0.3.
|
|
323
|
-
* Not supported on Web.
|
|
324
|
-
*/
|
|
325
|
-
gestureVelocityImpact?: number;
|
|
326
|
-
/**
|
|
327
|
-
* Whether to detach the previous screen from the view hierarchy to save memory.
|
|
328
|
-
* Set it to `false` if you need the previous screen to be seen through the active screen.
|
|
329
|
-
* Only applicable if `detachInactiveScreens` isn't set to `false`.
|
|
330
|
-
* Defaults to `false` for the last screen for modals, otherwise `true`.
|
|
331
|
-
*/
|
|
332
|
-
detachPreviousScreen?: boolean;
|
|
333
|
-
/**
|
|
334
|
-
* If `false`, the keyboard will NOT automatically dismiss when navigating to a new screen from this screen.
|
|
335
|
-
* Defaults to `true`.
|
|
336
|
-
*/
|
|
337
|
-
keyboardHandlingEnabled?: boolean;
|
|
338
|
-
/**
|
|
339
|
-
* Whether inactive screens should be suspended from re-rendering. Defaults to `false`.
|
|
340
|
-
* Defaults to `true` when `enableFreeze()` is run at the top of the application.
|
|
341
|
-
* Requires `react-native-screens` version >=3.16.0.
|
|
342
|
-
*
|
|
343
|
-
* Only supported on iOS and Android.
|
|
344
|
-
*/
|
|
345
|
-
freezeOnBlur?: boolean;
|
|
346
|
-
/**
|
|
347
|
-
* Whether the home indicator should prefer to stay hidden on this screen. Defaults to `false`.
|
|
348
|
-
*
|
|
349
|
-
* @platform ios
|
|
350
|
-
*/
|
|
351
|
-
autoHideHomeIndicator?: boolean;
|
|
352
|
-
};
|
|
353
|
-
export type StackNavigationConfig = {
|
|
354
|
-
/**
|
|
355
|
-
* Whether inactive screens should be detached from the view hierarchy to save memory.
|
|
356
|
-
* This will have no effect if you disable `react-native-screens`.
|
|
357
|
-
*
|
|
358
|
-
* Defaults to `true`.
|
|
359
|
-
*/
|
|
360
|
-
detachInactiveScreens?: boolean;
|
|
361
|
-
};
|
|
362
|
-
export type TransitionSpec = {
|
|
363
|
-
animation: 'spring';
|
|
364
|
-
config: Omit<Animated.SpringAnimationConfig, 'toValue' | keyof Animated.AnimationConfig>;
|
|
365
|
-
} | {
|
|
366
|
-
animation: 'timing';
|
|
367
|
-
config: Omit<Animated.TimingAnimationConfig, 'toValue' | keyof Animated.AnimationConfig>;
|
|
368
|
-
};
|
|
369
|
-
export type StackCardInterpolationProps = {
|
|
370
|
-
/**
|
|
371
|
-
* Values for the current screen.
|
|
372
|
-
*/
|
|
373
|
-
current: {
|
|
374
|
-
/**
|
|
375
|
-
* Animated node representing the progress value of the current screen.
|
|
376
|
-
*/
|
|
377
|
-
progress: Animated.AnimatedInterpolation<number>;
|
|
378
|
-
};
|
|
379
|
-
/**
|
|
380
|
-
* Values for the screen after this one in the stack.
|
|
381
|
-
* This can be `undefined` in case the screen animating is the last one.
|
|
382
|
-
*/
|
|
383
|
-
next?: {
|
|
384
|
-
/**
|
|
385
|
-
* Animated node representing the progress value of the next screen.
|
|
386
|
-
*/
|
|
387
|
-
progress: Animated.AnimatedInterpolation<number>;
|
|
388
|
-
};
|
|
389
|
-
/**
|
|
390
|
-
* The index of the card with this interpolation in the stack.
|
|
391
|
-
*/
|
|
392
|
-
index: number;
|
|
393
|
-
/**
|
|
394
|
-
* Animated node representing whether the card is closing (1 - closing, 0 - not closing).
|
|
395
|
-
*/
|
|
396
|
-
closing: Animated.AnimatedInterpolation<0 | 1>;
|
|
397
|
-
/**
|
|
398
|
-
* Animated node representing whether the card is being swiped (1 - swiping, 0 - not swiping).
|
|
399
|
-
*/
|
|
400
|
-
swiping: Animated.AnimatedInterpolation<0 | 1>;
|
|
401
|
-
/**
|
|
402
|
-
* Animated node representing multiplier when direction is inverted (-1 - inverted, 1 - normal).
|
|
403
|
-
*/
|
|
404
|
-
inverted: Animated.AnimatedInterpolation<1 | -1>;
|
|
405
|
-
/**
|
|
406
|
-
* Layout measurements for various items we use for animation.
|
|
407
|
-
*/
|
|
408
|
-
layouts: {
|
|
409
|
-
/**
|
|
410
|
-
* Layout of the whole screen.
|
|
411
|
-
*/
|
|
412
|
-
screen: Layout;
|
|
413
|
-
};
|
|
414
|
-
/**
|
|
415
|
-
* Safe area insets
|
|
416
|
-
*/
|
|
417
|
-
insets: {
|
|
418
|
-
top: number;
|
|
419
|
-
right: number;
|
|
420
|
-
bottom: number;
|
|
421
|
-
left: number;
|
|
422
|
-
};
|
|
423
|
-
};
|
|
424
|
-
export type StackCardInterpolatedStyle = {
|
|
425
|
-
/**
|
|
426
|
-
* Interpolated style for the container view wrapping the card.
|
|
427
|
-
*/
|
|
428
|
-
containerStyle?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
|
|
429
|
-
/**
|
|
430
|
-
* Interpolated style for the view representing the card.
|
|
431
|
-
*/
|
|
432
|
-
cardStyle?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
|
|
433
|
-
/**
|
|
434
|
-
* Interpolated style for the view representing the semi-transparent overlay below the card.
|
|
435
|
-
*/
|
|
436
|
-
overlayStyle?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
|
|
437
|
-
/**
|
|
438
|
-
* Interpolated style representing the card shadow.
|
|
439
|
-
*/
|
|
440
|
-
shadowStyle?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
|
|
441
|
-
};
|
|
442
|
-
export type StackCardStyleInterpolator = (props: StackCardInterpolationProps) => StackCardInterpolatedStyle;
|
|
443
|
-
export type StackHeaderInterpolationProps = {
|
|
444
|
-
/**
|
|
445
|
-
* Values for the current screen (the screen which owns this header).
|
|
446
|
-
*/
|
|
447
|
-
current: {
|
|
448
|
-
/**
|
|
449
|
-
* Animated node representing the progress value of the current screen.
|
|
450
|
-
*/
|
|
451
|
-
progress: Animated.AnimatedInterpolation<number>;
|
|
452
|
-
};
|
|
453
|
-
/**
|
|
454
|
-
* Values for the screen after this one in the stack.
|
|
455
|
-
* This can be `undefined` in case the screen animating is the last one.
|
|
456
|
-
*/
|
|
457
|
-
next?: {
|
|
458
|
-
/**
|
|
459
|
-
* Animated node representing the progress value of the next screen.
|
|
460
|
-
*/
|
|
461
|
-
progress: Animated.AnimatedInterpolation<number>;
|
|
462
|
-
};
|
|
463
|
-
/**
|
|
464
|
-
* Writing direction of the layout.
|
|
465
|
-
*/
|
|
466
|
-
direction: LocaleDirection;
|
|
467
|
-
/**
|
|
468
|
-
* Layout measurements for various items we use for animation.
|
|
469
|
-
*/
|
|
470
|
-
layouts: {
|
|
471
|
-
/**
|
|
472
|
-
* Layout of the header
|
|
473
|
-
*/
|
|
474
|
-
header: Layout;
|
|
475
|
-
/**
|
|
476
|
-
* Layout of the whole screen.
|
|
477
|
-
*/
|
|
478
|
-
screen: Layout;
|
|
479
|
-
/**
|
|
480
|
-
* Layout of the title element.
|
|
481
|
-
*/
|
|
482
|
-
title?: Layout;
|
|
483
|
-
/**
|
|
484
|
-
* Layout of the back button label.
|
|
485
|
-
*/
|
|
486
|
-
leftLabel?: Layout;
|
|
487
|
-
};
|
|
488
|
-
};
|
|
489
|
-
export type StackHeaderInterpolatedStyle = {
|
|
490
|
-
/**
|
|
491
|
-
* Interpolated style for the label of the left button (back button label).
|
|
492
|
-
*/
|
|
493
|
-
leftLabelStyle?: any;
|
|
494
|
-
/**
|
|
495
|
-
* Interpolated style for the left button (usually the back button).
|
|
496
|
-
*/
|
|
497
|
-
leftButtonStyle?: any;
|
|
498
|
-
/**
|
|
499
|
-
* Interpolated style for the right button.
|
|
500
|
-
*/
|
|
501
|
-
rightButtonStyle?: any;
|
|
502
|
-
/**
|
|
503
|
-
* Interpolated style for the header title text.
|
|
504
|
-
*/
|
|
505
|
-
titleStyle?: any;
|
|
506
|
-
/**
|
|
507
|
-
* Interpolated style for the header background.
|
|
508
|
-
*/
|
|
509
|
-
backgroundStyle?: any;
|
|
510
|
-
};
|
|
511
|
-
export type StackHeaderStyleInterpolator = (props: StackHeaderInterpolationProps) => StackHeaderInterpolatedStyle;
|
|
512
|
-
export type TransitionPreset = {
|
|
513
|
-
/**
|
|
514
|
-
* The direction of swipe gestures, `horizontal` or `vertical`.
|
|
515
|
-
*/
|
|
516
|
-
gestureDirection: GestureDirection;
|
|
517
|
-
/**
|
|
518
|
-
* Object which specifies the animation type (timing or spring) and their options (such as duration for timing).
|
|
519
|
-
*/
|
|
520
|
-
transitionSpec: {
|
|
521
|
-
/**
|
|
522
|
-
* Transition configuration when adding a screen.
|
|
523
|
-
*/
|
|
524
|
-
open: TransitionSpec;
|
|
525
|
-
/**
|
|
526
|
-
* Transition configuration when removing a screen.
|
|
527
|
-
*/
|
|
528
|
-
close: TransitionSpec;
|
|
529
|
-
};
|
|
530
|
-
/**
|
|
531
|
-
* Function which specifies interpolated styles for various parts of the card, e.g. the overlay, shadow etc.
|
|
532
|
-
*/
|
|
533
|
-
cardStyleInterpolator: StackCardStyleInterpolator;
|
|
534
|
-
/**
|
|
535
|
-
* Function which specifies interpolated styles for various parts of the header, e.g. the title, left button etc.
|
|
536
|
-
*/
|
|
537
|
-
headerStyleInterpolator: StackHeaderStyleInterpolator;
|
|
538
|
-
};
|
|
539
|
-
export type StackNavigatorProps = DefaultNavigatorOptions<ParamListBase, string | undefined, StackNavigationState<ParamListBase>, StackNavigationOptions, StackNavigationEventMap, StackNavigationProp<ParamListBase>> & StackRouterOptions & StackNavigationConfig;
|
|
540
|
-
export {};
|
|
541
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,2BAA2B,EAC3B,qBAAqB,EACrB,aAAa,EACb,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,E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zC;;OAEG;IACH,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB;;OAEG;IACH,gBAAgB,CAAC,EAAE,GAAG,CAAC;IACvB;;OAEG;IACH,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB;;OAEG;IACH,eAAe,CAAC,EAAE,GAAG,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,CACzC,KAAK,EAAE,6BAA6B,KACjC,4BAA4B,CAAC;AAElC,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,gBAAgB,EAAE,gBAAgB,CAAC;IACnC;;OAEG;IACH,cAAc,EAAE;QACd;;WAEG;QACH,IAAI,EAAE,cAAc,CAAC;QACrB;;WAEG;QACH,KAAK,EAAE,cAAc,CAAC;KACvB,CAAC;IACF;;OAEG;IACH,qBAAqB,EAAE,0BAA0B,CAAC;IAClD;;OAEG;IACH,uBAAuB,EAAE,4BAA4B,CAAC;CACvD,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,uBAAuB,CACvD,aAAa,EACb,MAAM,GAAG,SAAS,EAClB,oBAAoB,CAAC,aAAa,CAAC,EACnC,sBAAsB,EACtB,uBAAuB,EACvB,mBAAmB,CAAC,aAAa,CAAC,CACnC,GACC,kBAAkB,GAClB,qBAAqB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CardAnimationContext.d.ts","sourceRoot":"","sources":["../../../../../src/utils/CardAnimationContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAE5D,eAAO,MAAM,oBAAoB,wDAErB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GestureHandlerRefContext.d.ts","sourceRoot":"","sources":["../../../../../src/utils/GestureHandlerRefContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,eAAO,MAAM,wBAAwB,yIAEtB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ModalPresentationContext.d.ts","sourceRoot":"","sources":["../../../../../src/utils/ModalPresentationContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,eAAO,MAAM,wBAAwB,wBAA6B,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Animated } from 'react-native';
|
|
2
|
-
/**
|
|
3
|
-
* Use an Animated Node based on a condition. Similar to Reanimated's `cond`.
|
|
4
|
-
*
|
|
5
|
-
* @param condition Animated Node representing the condition, must be 0 or 1, 1 means `true`, 0 means `false`
|
|
6
|
-
* @param main Animated Node to use if the condition is `true`
|
|
7
|
-
* @param fallback Animated Node to use if the condition is `false`
|
|
8
|
-
*/
|
|
9
|
-
export declare function conditional(condition: Animated.AnimatedInterpolation<0 | 1>, main: Animated.AnimatedInterpolation<number>, fallback: Animated.AnimatedInterpolation<number>): Animated.AnimatedAddition<string | number>;
|
|
10
|
-
//# sourceMappingURL=conditional.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conditional.d.ts","sourceRoot":"","sources":["../../../../../src/utils/conditional.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAIxC;;;;;;GAMG;AACH,wBAAgB,WAAW,CACzB,SAAS,EAAE,QAAQ,CAAC,qBAAqB,CAAC,CAAC,GAAG,CAAC,CAAC,EAChD,IAAI,EAAE,QAAQ,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAC5C,QAAQ,EAAE,QAAQ,CAAC,qBAAqB,CAAC,MAAM,CAAC,8CAkBjD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"findLastIndex.d.ts","sourceRoot":"","sources":["../../../../../src/utils/findLastIndex.tsx"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,UAQ3E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getDistanceForDirection.d.ts","sourceRoot":"","sources":["../../../../../src/utils/getDistanceForDirection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGzD,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,gBAAgB,EAClC,KAAK,EAAE,OAAO,GACb,MAAM,CAWR"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getInvertedMultiplier.d.ts","sourceRoot":"","sources":["../../../../../src/utils/getInvertedMultiplier.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,wBAAgB,qBAAqB,CACnC,gBAAgB,EAAE,gBAAgB,EAClC,KAAK,EAAE,OAAO,GACb,CAAC,GAAG,CAAC,CAAC,CAWR"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getModalRoutesKeys.d.ts","sourceRoot":"","sources":["../../../../../src/utils/getModalRoutesKeys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,eAAO,MAAM,iBAAiB,WACpB,KAAK,CAAC,MAAM,CAAC,EAAE,eACV,kBAAkB,aAczB,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
type ShadowConfig = {
|
|
2
|
-
offset: {
|
|
3
|
-
width: number;
|
|
4
|
-
height: number;
|
|
5
|
-
};
|
|
6
|
-
radius: number;
|
|
7
|
-
opacity: number;
|
|
8
|
-
color?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare function getShadowStyle({ offset, radius, opacity, color, }: ShadowConfig): {
|
|
11
|
-
boxShadow: string;
|
|
12
|
-
shadowOffset?: undefined;
|
|
13
|
-
shadowRadius?: undefined;
|
|
14
|
-
shadowColor?: undefined;
|
|
15
|
-
shadowOpacity?: undefined;
|
|
16
|
-
} | {
|
|
17
|
-
shadowOffset: {
|
|
18
|
-
width: number;
|
|
19
|
-
height: number;
|
|
20
|
-
};
|
|
21
|
-
shadowRadius: number;
|
|
22
|
-
shadowColor: string;
|
|
23
|
-
shadowOpacity: number;
|
|
24
|
-
boxShadow?: undefined;
|
|
25
|
-
};
|
|
26
|
-
export {};
|
|
27
|
-
//# sourceMappingURL=getShadowStyle.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getShadowStyle.d.ts","sourceRoot":"","sources":["../../../../../src/utils/getShadowStyle.tsx"],"names":[],"mappings":"AAGA,KAAK,YAAY,GAAG;IAClB,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,MAAM,EACN,OAAO,EACP,KAAc,GACf,EAAE,YAAY;;;;;;;;eAbJ,MAAM;gBACL,MAAM;;;;;;EA8BjB"}
|