@react-navigation/stack 6.3.16 → 7.0.0-alpha.1
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/commonjs/TransitionConfigs/CardStyleInterpolators.js +4 -5
- package/lib/commonjs/TransitionConfigs/CardStyleInterpolators.js.map +1 -1
- package/lib/commonjs/index.js +14 -15
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/navigators/createStackNavigator.js +6 -27
- package/lib/commonjs/navigators/createStackNavigator.js.map +1 -1
- package/lib/commonjs/utils/CardAnimationContext.js +3 -3
- package/lib/commonjs/utils/CardAnimationContext.js.map +1 -1
- package/lib/commonjs/utils/GestureHandlerRefContext.js +3 -3
- package/lib/commonjs/utils/GestureHandlerRefContext.js.map +1 -1
- package/lib/commonjs/utils/ModalPresentationContext.js +2 -3
- package/lib/commonjs/utils/ModalPresentationContext.js.map +1 -1
- package/lib/commonjs/utils/conditional.js +1 -1
- package/lib/commonjs/utils/conditional.js.map +1 -1
- package/lib/commonjs/utils/debounce.js +1 -2
- package/lib/commonjs/utils/debounce.js.map +1 -1
- package/lib/commonjs/utils/findLastIndex.js +1 -1
- package/lib/commonjs/utils/findLastIndex.js.map +1 -1
- package/lib/commonjs/utils/getDistanceForDirection.js +3 -4
- package/lib/commonjs/utils/getDistanceForDirection.js.map +1 -1
- package/lib/commonjs/utils/getInvertedMultiplier.js +1 -1
- package/lib/commonjs/utils/getInvertedMultiplier.js.map +1 -1
- package/lib/commonjs/utils/memoize.js +1 -1
- package/lib/commonjs/utils/memoize.js.map +1 -1
- package/lib/commonjs/utils/useCardAnimation.js +3 -4
- package/lib/commonjs/utils/useCardAnimation.js.map +1 -1
- package/lib/commonjs/utils/useGestureHandlerRef.js +3 -4
- package/lib/commonjs/utils/useGestureHandlerRef.js.map +1 -1
- package/lib/commonjs/utils/useKeyboardManager.js +1 -1
- package/lib/commonjs/utils/useKeyboardManager.js.map +1 -1
- package/lib/commonjs/views/GestureHandlerNative.js +2 -3
- package/lib/commonjs/views/GestureHandlerNative.js.map +1 -1
- package/lib/commonjs/views/Header/Header.js +9 -10
- package/lib/commonjs/views/Header/Header.js.map +1 -1
- package/lib/commonjs/views/Header/HeaderContainer.js +3 -4
- package/lib/commonjs/views/Header/HeaderContainer.js.map +1 -1
- package/lib/commonjs/views/Header/HeaderSegment.js +3 -4
- package/lib/commonjs/views/Header/HeaderSegment.js.map +1 -1
- package/lib/commonjs/views/ModalStatusBarManager.js +1 -1
- package/lib/commonjs/views/ModalStatusBarManager.js.map +1 -1
- package/lib/commonjs/views/Stack/Card.js +18 -18
- package/lib/commonjs/views/Stack/Card.js.map +1 -1
- package/lib/commonjs/views/Stack/CardContainer.js +10 -11
- package/lib/commonjs/views/Stack/CardContainer.js.map +1 -1
- package/lib/commonjs/views/Stack/CardSheet.js +3 -3
- package/lib/commonjs/views/Stack/CardSheet.js.map +1 -1
- package/lib/commonjs/views/Stack/CardStack.js +8 -8
- package/lib/commonjs/views/Stack/CardStack.js.map +1 -1
- package/lib/commonjs/views/Stack/StackView.js +15 -9
- package/lib/commonjs/views/Stack/StackView.js.map +1 -1
- package/lib/module/TransitionConfigs/CardStyleInterpolators.js +1 -1
- package/lib/module/TransitionConfigs/CardStyleInterpolators.js.map +1 -1
- package/lib/module/index.js +7 -7
- package/lib/module/index.js.map +1 -1
- package/lib/module/navigators/createStackNavigator.js +3 -23
- package/lib/module/navigators/createStackNavigator.js.map +1 -1
- package/lib/module/utils/CardAnimationContext.js +1 -1
- package/lib/module/utils/CardAnimationContext.js.map +1 -1
- package/lib/module/utils/GestureHandlerRefContext.js +1 -1
- package/lib/module/utils/GestureHandlerRefContext.js.map +1 -1
- package/lib/module/utils/ModalPresentationContext.js +1 -2
- package/lib/module/utils/ModalPresentationContext.js.map +1 -1
- package/lib/module/utils/conditional.js +1 -1
- package/lib/module/utils/conditional.js.map +1 -1
- package/lib/module/utils/debounce.js +1 -2
- package/lib/module/utils/debounce.js.map +1 -1
- package/lib/module/utils/findLastIndex.js +1 -1
- package/lib/module/utils/findLastIndex.js.map +1 -1
- package/lib/module/utils/getDistanceForDirection.js +2 -2
- package/lib/module/utils/getDistanceForDirection.js.map +1 -1
- package/lib/module/utils/getInvertedMultiplier.js +1 -1
- package/lib/module/utils/getInvertedMultiplier.js.map +1 -1
- package/lib/module/utils/memoize.js +1 -1
- package/lib/module/utils/memoize.js.map +1 -1
- package/lib/module/utils/useCardAnimation.js +2 -2
- package/lib/module/utils/useCardAnimation.js.map +1 -1
- package/lib/module/utils/useGestureHandlerRef.js +3 -3
- package/lib/module/utils/useGestureHandlerRef.js.map +1 -1
- package/lib/module/utils/useKeyboardManager.js +1 -1
- package/lib/module/utils/useKeyboardManager.js.map +1 -1
- package/lib/module/views/GestureHandlerNative.js +1 -1
- package/lib/module/views/GestureHandlerNative.js.map +1 -1
- package/lib/module/views/Header/Header.js +4 -4
- package/lib/module/views/Header/Header.js.map +1 -1
- package/lib/module/views/Header/HeaderContainer.js +2 -2
- package/lib/module/views/Header/HeaderContainer.js.map +1 -1
- package/lib/module/views/Header/HeaderSegment.js +2 -2
- package/lib/module/views/Header/HeaderSegment.js.map +1 -1
- package/lib/module/views/ModalStatusBarManager.js +1 -1
- package/lib/module/views/ModalStatusBarManager.js.map +1 -1
- package/lib/module/views/Stack/Card.js +7 -7
- package/lib/module/views/Stack/Card.js.map +1 -1
- package/lib/module/views/Stack/CardContainer.js +5 -5
- package/lib/module/views/Stack/CardContainer.js.map +1 -1
- package/lib/module/views/Stack/CardSheet.js +1 -1
- package/lib/module/views/Stack/CardSheet.js.map +1 -1
- package/lib/module/views/Stack/CardStack.js +4 -4
- package/lib/module/views/Stack/CardStack.js.map +1 -1
- package/lib/module/views/Stack/StackView.js +13 -6
- package/lib/module/views/Stack/StackView.js.map +1 -1
- package/lib/typescript/src/index.d.ts +7 -7
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/navigators/createStackNavigator.d.ts +8 -3
- package/lib/typescript/src/navigators/createStackNavigator.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +36 -36
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/lib/typescript/src/utils/CardAnimationContext.d.ts +1 -2
- package/lib/typescript/src/utils/CardAnimationContext.d.ts.map +1 -1
- package/lib/typescript/src/utils/GestureHandlerRefContext.d.ts +1 -2
- package/lib/typescript/src/utils/GestureHandlerRefContext.d.ts.map +1 -1
- package/lib/typescript/src/utils/ModalPresentationContext.d.ts +1 -2
- package/lib/typescript/src/utils/ModalPresentationContext.d.ts.map +1 -1
- package/lib/typescript/src/utils/conditional.d.ts +1 -1
- package/lib/typescript/src/utils/conditional.d.ts.map +1 -1
- package/lib/typescript/src/utils/debounce.d.ts +1 -1
- package/lib/typescript/src/utils/debounce.d.ts.map +1 -1
- package/lib/typescript/src/utils/findLastIndex.d.ts +1 -1
- package/lib/typescript/src/utils/findLastIndex.d.ts.map +1 -1
- package/lib/typescript/src/utils/getDistanceForDirection.d.ts +1 -1
- package/lib/typescript/src/utils/getDistanceForDirection.d.ts.map +1 -1
- package/lib/typescript/src/utils/getInvertedMultiplier.d.ts +1 -1
- package/lib/typescript/src/utils/getInvertedMultiplier.d.ts.map +1 -1
- package/lib/typescript/src/utils/memoize.d.ts +1 -1
- package/lib/typescript/src/utils/memoize.d.ts.map +1 -1
- package/lib/typescript/src/utils/useCardAnimation.d.ts +1 -1
- package/lib/typescript/src/utils/useCardAnimation.d.ts.map +1 -1
- package/lib/typescript/src/utils/useGestureHandlerRef.d.ts +1 -1
- package/lib/typescript/src/utils/useGestureHandlerRef.d.ts.map +1 -1
- package/lib/typescript/src/utils/useKeyboardManager.d.ts +1 -1
- package/lib/typescript/src/utils/useKeyboardManager.d.ts.map +1 -1
- package/lib/typescript/src/views/Header/Header.d.ts +1 -2
- package/lib/typescript/src/views/Header/Header.d.ts.map +1 -1
- package/lib/typescript/src/views/Header/HeaderContainer.d.ts +2 -2
- package/lib/typescript/src/views/Header/HeaderContainer.d.ts.map +1 -1
- package/lib/typescript/src/views/Header/HeaderSegment.d.ts +2 -2
- package/lib/typescript/src/views/Header/HeaderSegment.d.ts.map +1 -1
- package/lib/typescript/src/views/ModalStatusBarManager.d.ts +2 -2
- package/lib/typescript/src/views/ModalStatusBarManager.d.ts.map +1 -1
- package/lib/typescript/src/views/Screens.d.ts +1 -1
- package/lib/typescript/src/views/Screens.d.ts.map +1 -1
- package/lib/typescript/src/views/Stack/Card.d.ts +4 -4
- package/lib/typescript/src/views/Stack/Card.d.ts.map +1 -1
- package/lib/typescript/src/views/Stack/CardContainer.d.ts +4 -4
- package/lib/typescript/src/views/Stack/CardContainer.d.ts.map +1 -1
- package/lib/typescript/src/views/Stack/CardSheet.d.ts +2 -3
- package/lib/typescript/src/views/Stack/CardSheet.d.ts.map +1 -1
- package/lib/typescript/src/views/Stack/CardStack.d.ts +4 -4
- package/lib/typescript/src/views/Stack/CardStack.d.ts.map +1 -1
- package/lib/typescript/src/views/Stack/StackView.d.ts +3 -3
- package/lib/typescript/src/views/Stack/StackView.d.ts.map +1 -1
- package/package.json +15 -16
- package/src/TransitionConfigs/CardStyleInterpolators.tsx +1 -1
- package/src/index.tsx +7 -7
- package/src/navigators/createStackNavigator.tsx +2 -41
- package/src/types.tsx +11 -11
- package/src/utils/CardAnimationContext.tsx +3 -3
- package/src/utils/GestureHandlerRefContext.tsx +1 -1
- package/src/utils/ModalPresentationContext.tsx +1 -3
- package/src/utils/conditional.tsx +4 -4
- package/src/utils/debounce.tsx +1 -2
- package/src/utils/findLastIndex.tsx +1 -4
- package/src/utils/getDistanceForDirection.tsx +2 -2
- package/src/utils/getInvertedMultiplier.tsx +1 -1
- package/src/utils/memoize.tsx +1 -1
- package/src/utils/useCardAnimation.tsx +2 -2
- package/src/utils/useGestureHandlerRef.tsx +3 -3
- package/src/utils/useKeyboardManager.tsx +1 -1
- package/src/views/GestureHandlerNative.tsx +1 -1
- package/src/views/Header/Header.tsx +4 -4
- package/src/views/Header/HeaderContainer.tsx +2 -2
- package/src/views/Header/HeaderSegment.tsx +4 -4
- package/src/views/ModalStatusBarManager.tsx +1 -6
- package/src/views/Screens.tsx +1 -1
- package/src/views/Stack/Card.tsx +11 -11
- package/src/views/Stack/CardContainer.tsx +5 -5
- package/src/views/Stack/CardSheet.tsx +33 -34
- package/src/views/Stack/CardStack.tsx +10 -5
- package/src/views/Stack/StackView.tsx +18 -5
|
@@ -5,12 +5,12 @@ import * as TransitionSpecs from './TransitionConfigs/TransitionSpecs';
|
|
|
5
5
|
/**
|
|
6
6
|
* Navigators
|
|
7
7
|
*/
|
|
8
|
-
export {
|
|
8
|
+
export { createStackNavigator } from './navigators/createStackNavigator';
|
|
9
9
|
/**
|
|
10
10
|
* Views
|
|
11
11
|
*/
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
12
|
+
export { Header } from './views/Header/Header';
|
|
13
|
+
export { StackView } from './views/Stack/StackView';
|
|
14
14
|
/**
|
|
15
15
|
* Transition presets
|
|
16
16
|
*/
|
|
@@ -18,10 +18,10 @@ export { CardStyleInterpolators, HeaderStyleInterpolators, TransitionPresets, Tr
|
|
|
18
18
|
/**
|
|
19
19
|
* Utilities
|
|
20
20
|
*/
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
21
|
+
export { CardAnimationContext } from './utils/CardAnimationContext';
|
|
22
|
+
export { GestureHandlerRefContext } from './utils/GestureHandlerRefContext';
|
|
23
|
+
export { useCardAnimation } from './utils/useCardAnimation';
|
|
24
|
+
export { useGestureHandlerRef } from './utils/useGestureHandlerRef';
|
|
25
25
|
/**
|
|
26
26
|
* Types
|
|
27
27
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,sBAAsB,MAAM,4CAA4C,CAAC;AACrF,OAAO,KAAK,wBAAwB,MAAM,8CAA8C,CAAC;AACzF,OAAO,KAAK,iBAAiB,MAAM,uCAAuC,CAAC;AAC3E,OAAO,KAAK,eAAe,MAAM,qCAAqC,CAAC;AAEvE;;GAEG;AACH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,sBAAsB,MAAM,4CAA4C,CAAC;AACrF,OAAO,KAAK,wBAAwB,MAAM,8CAA8C,CAAC;AACzF,OAAO,KAAK,iBAAiB,MAAM,uCAAuC,CAAC;AAC3E,OAAO,KAAK,eAAe,MAAM,qCAAqC,CAAC;AAEvE;;GAEG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAEzE;;GAEG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD;;GAEG;AACH,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,EACjB,eAAe,GAChB,CAAC;AAEF;;GAEG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE;;GAEG;AACH,YAAY,EACV,0BAA0B,EAC1B,2BAA2B,EAC3B,0BAA0B,EAC1B,4BAA4B,EAC5B,6BAA6B,EAC7B,gBAAgB,EAChB,4BAA4B,EAC5B,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,SAAS,CAAC"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DefaultNavigatorOptions, ParamListBase, StackNavigationState, StackRouterOptions } from '@react-navigation/native';
|
|
3
3
|
import type { StackNavigationConfig, StackNavigationEventMap, StackNavigationOptions } from '../types';
|
|
4
|
-
|
|
4
|
+
type Props = DefaultNavigatorOptions<ParamListBase, StackNavigationState<ParamListBase>, StackNavigationOptions, StackNavigationEventMap> & StackRouterOptions & StackNavigationConfig;
|
|
5
5
|
declare function StackNavigator({ id, initialRouteName, children, screenListeners, screenOptions, ...rest }: Props): JSX.Element;
|
|
6
|
-
declare const
|
|
7
|
-
|
|
6
|
+
export declare const createStackNavigator: {
|
|
7
|
+
<ParamList extends ParamListBase>(): import("@react-navigation/native").TypedNavigator<ParamList, StackNavigationState<ParamListBase>, StackNavigationOptions, StackNavigationEventMap, typeof StackNavigator>;
|
|
8
|
+
<ParamList_1 extends ParamListBase, Config extends import("packages/core/lib/typescript/src/StaticNavigation").StaticConfig<ParamList_1, StackNavigationState<ParamListBase>, StackNavigationOptions, StackNavigationEventMap, typeof StackNavigator>>(config: Config): import("@react-navigation/native").TypedNavigator<ParamList_1, StackNavigationState<ParamListBase>, StackNavigationOptions, StackNavigationEventMap, typeof StackNavigator> & {
|
|
9
|
+
config: Config;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
8
13
|
//# sourceMappingURL=createStackNavigator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createStackNavigator.d.ts","sourceRoot":"","sources":["../../../../src/navigators/createStackNavigator.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEL,uBAAuB,EAEvB,aAAa,EAGb,oBAAoB,EAEpB,kBAAkB,EAEnB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"createStackNavigator.d.ts","sourceRoot":"","sources":["../../../../src/navigators/createStackNavigator.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEL,uBAAuB,EAEvB,aAAa,EAGb,oBAAoB,EAEpB,kBAAkB,EAEnB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,KAAK,EACV,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAGlB,KAAK,KAAK,GAAG,uBAAuB,CAClC,aAAa,EACb,oBAAoB,CAAC,aAAa,CAAC,EACnC,sBAAsB,EACtB,uBAAuB,CACxB,GACC,kBAAkB,GAClB,qBAAqB,CAAC;AAExB,iBAAS,cAAc,CAAC,EACtB,EAAE,EACF,gBAAgB,EAChB,QAAQ,EACR,eAAe,EACf,aAAa,EACb,GAAG,IAAI,EACR,EAAE,KAAK,eAoDP;AAED,eAAO,MAAM,oBAAoB;;;;;CAKhB,CAAC"}
|
|
@@ -2,7 +2,7 @@ import type { HeaderBackButton, HeaderBackButtonProps, HeaderButtonProps, Header
|
|
|
2
2
|
import type { Descriptor, NavigationHelpers, NavigationProp, ParamListBase, Route, RouteProp, StackActionHelpers, StackNavigationState } from '@react-navigation/native';
|
|
3
3
|
import type * as React from 'react';
|
|
4
4
|
import type { Animated, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
5
|
-
export
|
|
5
|
+
export type StackNavigationEventMap = {
|
|
6
6
|
/**
|
|
7
7
|
* Event which fires when a transition animation starts.
|
|
8
8
|
*/
|
|
@@ -38,24 +38,24 @@ export declare type StackNavigationEventMap = {
|
|
|
38
38
|
data: undefined;
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
|
-
export
|
|
42
|
-
export
|
|
43
|
-
export
|
|
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
44
|
navigation: StackNavigationProp<ParamList, RouteName, NavigatorID>;
|
|
45
45
|
route: RouteProp<ParamList, RouteName>;
|
|
46
46
|
};
|
|
47
|
-
export
|
|
47
|
+
export type Layout = {
|
|
48
48
|
width: number;
|
|
49
49
|
height: number;
|
|
50
50
|
};
|
|
51
|
-
export
|
|
52
|
-
|
|
51
|
+
export type GestureDirection = 'horizontal' | 'horizontal-inverted' | 'vertical' | 'vertical-inverted';
|
|
52
|
+
type SceneOptionsDefaults = TransitionPreset & {
|
|
53
53
|
animationEnabled: boolean;
|
|
54
54
|
gestureEnabled: boolean;
|
|
55
55
|
cardOverlayEnabled: boolean;
|
|
56
56
|
headerMode: StackHeaderMode;
|
|
57
57
|
};
|
|
58
|
-
export
|
|
58
|
+
export type Scene = {
|
|
59
59
|
/**
|
|
60
60
|
* Route object for the current screen.
|
|
61
61
|
*/
|
|
@@ -71,25 +71,25 @@ export declare type Scene = {
|
|
|
71
71
|
*/
|
|
72
72
|
progress: SceneProgress;
|
|
73
73
|
};
|
|
74
|
-
export
|
|
74
|
+
export type SceneProgress = {
|
|
75
75
|
/**
|
|
76
76
|
* Progress value of the current screen.
|
|
77
77
|
*/
|
|
78
|
-
current: Animated.AnimatedInterpolation
|
|
78
|
+
current: Animated.AnimatedInterpolation<number>;
|
|
79
79
|
/**
|
|
80
80
|
* Progress value for the screen after this one in the stack.
|
|
81
81
|
* This can be `undefined` in case the screen animating is the last one.
|
|
82
82
|
*/
|
|
83
|
-
next?: Animated.AnimatedInterpolation
|
|
83
|
+
next?: Animated.AnimatedInterpolation<number>;
|
|
84
84
|
/**
|
|
85
85
|
* Progress value for the screen before this one in the stack.
|
|
86
86
|
* This can be `undefined` in case the screen animating is the first one.
|
|
87
87
|
*/
|
|
88
|
-
previous?: Animated.AnimatedInterpolation
|
|
88
|
+
previous?: Animated.AnimatedInterpolation<number>;
|
|
89
89
|
};
|
|
90
|
-
export
|
|
91
|
-
export
|
|
92
|
-
export
|
|
90
|
+
export type StackHeaderMode = 'float' | 'screen';
|
|
91
|
+
export type StackPresentationMode = 'card' | 'modal';
|
|
92
|
+
export type StackHeaderOptions = Omit<HeaderOptions, 'headerLeft' | 'headerTitle' | 'headerRight'> & {
|
|
93
93
|
/**
|
|
94
94
|
* String or a function that returns a React Element to be used by the header.
|
|
95
95
|
* Defaults to screen `title` or route name.
|
|
@@ -127,7 +127,7 @@ export declare type StackHeaderOptions = Omit<HeaderOptions, 'headerLeft' | 'hea
|
|
|
127
127
|
/**
|
|
128
128
|
* Whether the back button title should be visible or not.
|
|
129
129
|
*
|
|
130
|
-
* Defaults to `true` on iOS, `false
|
|
130
|
+
* Defaults to `true` on iOS, `false on Android.
|
|
131
131
|
*/
|
|
132
132
|
headerBackTitleVisible?: boolean;
|
|
133
133
|
/**
|
|
@@ -145,7 +145,7 @@ export declare type StackHeaderOptions = Omit<HeaderOptions, 'headerLeft' | 'hea
|
|
|
145
145
|
*/
|
|
146
146
|
headerBackImage?: React.ComponentProps<typeof HeaderBackButton>['backImage'];
|
|
147
147
|
};
|
|
148
|
-
export
|
|
148
|
+
export type StackHeaderProps = {
|
|
149
149
|
/**
|
|
150
150
|
* Layout of the screen.
|
|
151
151
|
*/
|
|
@@ -180,9 +180,9 @@ export declare type StackHeaderProps = {
|
|
|
180
180
|
*/
|
|
181
181
|
styleInterpolator: StackHeaderStyleInterpolator;
|
|
182
182
|
};
|
|
183
|
-
export
|
|
184
|
-
export
|
|
185
|
-
export
|
|
183
|
+
export type StackDescriptor = Descriptor<StackNavigationOptions, StackNavigationProp<ParamListBase>, RouteProp<ParamListBase>>;
|
|
184
|
+
export type StackDescriptorMap = Record<string, StackDescriptor>;
|
|
185
|
+
export type StackNavigationOptions = StackHeaderOptions & Partial<TransitionPreset> & {
|
|
186
186
|
/**
|
|
187
187
|
* String that can be displayed in the header as a fallback for `headerTitle`.
|
|
188
188
|
*/
|
|
@@ -295,7 +295,7 @@ export declare type StackNavigationOptions = StackHeaderOptions & Partial<Transi
|
|
|
295
295
|
*/
|
|
296
296
|
freezeOnBlur?: boolean;
|
|
297
297
|
};
|
|
298
|
-
export
|
|
298
|
+
export type StackNavigationConfig = {
|
|
299
299
|
/**
|
|
300
300
|
* Whether inactive screens should be detached from the view hierarchy to save memory.
|
|
301
301
|
* This will have no effect if you disable `react-native-screens`.
|
|
@@ -304,14 +304,14 @@ export declare type StackNavigationConfig = {
|
|
|
304
304
|
*/
|
|
305
305
|
detachInactiveScreens?: boolean;
|
|
306
306
|
};
|
|
307
|
-
export
|
|
307
|
+
export type TransitionSpec = {
|
|
308
308
|
animation: 'spring';
|
|
309
309
|
config: Omit<Animated.SpringAnimationConfig, 'toValue' | keyof Animated.AnimationConfig>;
|
|
310
310
|
} | {
|
|
311
311
|
animation: 'timing';
|
|
312
312
|
config: Omit<Animated.TimingAnimationConfig, 'toValue' | keyof Animated.AnimationConfig>;
|
|
313
313
|
};
|
|
314
|
-
export
|
|
314
|
+
export type StackCardInterpolationProps = {
|
|
315
315
|
/**
|
|
316
316
|
* Values for the current screen.
|
|
317
317
|
*/
|
|
@@ -319,7 +319,7 @@ export declare type StackCardInterpolationProps = {
|
|
|
319
319
|
/**
|
|
320
320
|
* Animated node representing the progress value of the current screen.
|
|
321
321
|
*/
|
|
322
|
-
progress: Animated.AnimatedInterpolation
|
|
322
|
+
progress: Animated.AnimatedInterpolation<number>;
|
|
323
323
|
};
|
|
324
324
|
/**
|
|
325
325
|
* Values for the screen after this one in the stack.
|
|
@@ -329,7 +329,7 @@ export declare type StackCardInterpolationProps = {
|
|
|
329
329
|
/**
|
|
330
330
|
* Animated node representing the progress value of the next screen.
|
|
331
331
|
*/
|
|
332
|
-
progress: Animated.AnimatedInterpolation
|
|
332
|
+
progress: Animated.AnimatedInterpolation<number>;
|
|
333
333
|
};
|
|
334
334
|
/**
|
|
335
335
|
* The index of the card with this interpolation in the stack.
|
|
@@ -338,15 +338,15 @@ export declare type StackCardInterpolationProps = {
|
|
|
338
338
|
/**
|
|
339
339
|
* Animated node representing whether the card is closing (1 - closing, 0 - not closing).
|
|
340
340
|
*/
|
|
341
|
-
closing: Animated.AnimatedInterpolation
|
|
341
|
+
closing: Animated.AnimatedInterpolation<0 | 1>;
|
|
342
342
|
/**
|
|
343
343
|
* Animated node representing whether the card is being swiped (1 - swiping, 0 - not swiping).
|
|
344
344
|
*/
|
|
345
|
-
swiping: Animated.AnimatedInterpolation
|
|
345
|
+
swiping: Animated.AnimatedInterpolation<0 | 1>;
|
|
346
346
|
/**
|
|
347
347
|
* Animated node representing multiplier when direction is inverted (-1 - inverted, 1 - normal).
|
|
348
348
|
*/
|
|
349
|
-
inverted: Animated.AnimatedInterpolation
|
|
349
|
+
inverted: Animated.AnimatedInterpolation<1 | -1>;
|
|
350
350
|
/**
|
|
351
351
|
* Layout measurements for various items we use for animation.
|
|
352
352
|
*/
|
|
@@ -366,7 +366,7 @@ export declare type StackCardInterpolationProps = {
|
|
|
366
366
|
left: number;
|
|
367
367
|
};
|
|
368
368
|
};
|
|
369
|
-
export
|
|
369
|
+
export type StackCardInterpolatedStyle = {
|
|
370
370
|
/**
|
|
371
371
|
* Interpolated style for the container view wrapping the card.
|
|
372
372
|
*/
|
|
@@ -384,8 +384,8 @@ export declare type StackCardInterpolatedStyle = {
|
|
|
384
384
|
*/
|
|
385
385
|
shadowStyle?: any;
|
|
386
386
|
};
|
|
387
|
-
export
|
|
388
|
-
export
|
|
387
|
+
export type StackCardStyleInterpolator = (props: StackCardInterpolationProps) => StackCardInterpolatedStyle;
|
|
388
|
+
export type StackHeaderInterpolationProps = {
|
|
389
389
|
/**
|
|
390
390
|
* Values for the current screen (the screen which owns this header).
|
|
391
391
|
*/
|
|
@@ -393,7 +393,7 @@ export declare type StackHeaderInterpolationProps = {
|
|
|
393
393
|
/**
|
|
394
394
|
* Animated node representing the progress value of the current screen.
|
|
395
395
|
*/
|
|
396
|
-
progress: Animated.AnimatedInterpolation
|
|
396
|
+
progress: Animated.AnimatedInterpolation<number>;
|
|
397
397
|
};
|
|
398
398
|
/**
|
|
399
399
|
* Values for the screen after this one in the stack.
|
|
@@ -403,7 +403,7 @@ export declare type StackHeaderInterpolationProps = {
|
|
|
403
403
|
/**
|
|
404
404
|
* Animated node representing the progress value of the next screen.
|
|
405
405
|
*/
|
|
406
|
-
progress: Animated.AnimatedInterpolation
|
|
406
|
+
progress: Animated.AnimatedInterpolation<number>;
|
|
407
407
|
};
|
|
408
408
|
/**
|
|
409
409
|
* Layout measurements for various items we use for animation.
|
|
@@ -427,7 +427,7 @@ export declare type StackHeaderInterpolationProps = {
|
|
|
427
427
|
leftLabel?: Layout;
|
|
428
428
|
};
|
|
429
429
|
};
|
|
430
|
-
export
|
|
430
|
+
export type StackHeaderInterpolatedStyle = {
|
|
431
431
|
/**
|
|
432
432
|
* Interpolated style for the label of the left button (back button label).
|
|
433
433
|
*/
|
|
@@ -449,8 +449,8 @@ export declare type StackHeaderInterpolatedStyle = {
|
|
|
449
449
|
*/
|
|
450
450
|
backgroundStyle?: any;
|
|
451
451
|
};
|
|
452
|
-
export
|
|
453
|
-
export
|
|
452
|
+
export type StackHeaderStyleInterpolator = (props: StackHeaderInterpolationProps) => StackHeaderInterpolatedStyle;
|
|
453
|
+
export type TransitionPreset = {
|
|
454
454
|
/**
|
|
455
455
|
* The direction of swipe gestures, `horizontal` or `vertical`.
|
|
456
456
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,KAAK,EACL,SAAS,EACT,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAA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BAAqB,CAAC,MAAM,CAAC,CAAC;KAClD,CAAC;IACF;;OAEG;IACH,OAAO,EAAE;QACP;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QACf;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QACf;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC;;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"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { StackCardInterpolationProps } from '../types';
|
|
3
|
-
declare const
|
|
4
|
-
export default _default;
|
|
3
|
+
export declare const CardAnimationContext: React.Context<StackCardInterpolationProps | undefined>;
|
|
5
4
|
//# sourceMappingURL=CardAnimationContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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,4 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
declare const
|
|
3
|
-
export default _default;
|
|
2
|
+
export declare const GestureHandlerRefContext: React.Context<React.Ref<React.ComponentType<import("react-native-gesture-handler").PanGestureHandlerProps & React.RefAttributes<any>>>>;
|
|
4
3
|
//# sourceMappingURL=GestureHandlerRefContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GestureHandlerRefContext.d.ts","sourceRoot":"","sources":["../../../../src/utils/GestureHandlerRefContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalPresentationContext.d.ts","sourceRoot":"","sources":["../../../../src/utils/ModalPresentationContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,
|
|
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"}
|
|
@@ -6,5 +6,5 @@ import { Animated } from 'react-native';
|
|
|
6
6
|
* @param main Animated Node to use if the condition is `true`
|
|
7
7
|
* @param fallback Animated Node to use if the condition is `false`
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export declare function conditional(condition: Animated.AnimatedInterpolation<0 | 1>, main: Animated.AnimatedInterpolation<number>, fallback: Animated.AnimatedInterpolation<number>): Animated.AnimatedAddition<string | number>;
|
|
10
10
|
//# sourceMappingURL=conditional.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function debounce<T extends (...args: any[]) => void>(func: T, duration: number): T;
|
|
2
2
|
//# sourceMappingURL=debounce.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../../src/utils/debounce.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../../src/utils/debounce.tsx"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EACzD,IAAI,EAAE,CAAC,EACP,QAAQ,EAAE,MAAM,GACf,CAAC,CAYH"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function findLastIndex<T>(array: T[], callback: (value: T) => boolean): number;
|
|
2
2
|
//# sourceMappingURL=findLastIndex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findLastIndex.d.ts","sourceRoot":"","sources":["../../../../src/utils/findLastIndex.tsx"],"names":[],"mappings":"AAAA,
|
|
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,3 +1,3 @@
|
|
|
1
1
|
import type { GestureDirection, Layout } from '../types';
|
|
2
|
-
export
|
|
2
|
+
export declare function getDistanceForDirection(layout: Layout, gestureDirection: GestureDirection): number;
|
|
3
3
|
//# sourceMappingURL=getDistanceForDirection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,GACjC,MAAM,CAWR"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { GestureDirection } from '../types';
|
|
2
|
-
export
|
|
2
|
+
export declare function getInvertedMultiplier(gestureDirection: GestureDirection): 1 | -1;
|
|
3
3
|
//# sourceMappingURL=getInvertedMultiplier.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInvertedMultiplier.d.ts","sourceRoot":"","sources":["../../../../src/utils/getInvertedMultiplier.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,
|
|
1
|
+
{"version":3,"file":"getInvertedMultiplier.d.ts","sourceRoot":"","sources":["../../../../src/utils/getInvertedMultiplier.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,wBAAgB,qBAAqB,CACnC,gBAAgB,EAAE,gBAAgB,GACjC,CAAC,GAAG,CAAC,CAAC,CAWR"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function memoize<Result, Deps extends readonly any[]>(callback: (...deps: Deps) => Result): (...dependencies: Deps) => Result;
|
|
2
2
|
//# sourceMappingURL=memoize.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memoize.d.ts","sourceRoot":"","sources":["../../../../src/utils/memoize.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"memoize.d.ts","sourceRoot":"","sources":["../../../../src/utils/memoize.tsx"],"names":[],"mappings":"AAAA,wBAAgB,OAAO,CAAC,MAAM,EAAE,IAAI,SAAS,SAAS,GAAG,EAAE,EACzD,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,MAAM,qBAKV,IAAI,KAAG,MAAM,CA0BvC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function useCardAnimation(): import("..").StackCardInterpolationProps;
|
|
2
2
|
//# sourceMappingURL=useCardAnimation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCardAnimation.d.ts","sourceRoot":"","sources":["../../../../src/utils/useCardAnimation.tsx"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"useCardAnimation.d.ts","sourceRoot":"","sources":["../../../../src/utils/useCardAnimation.tsx"],"names":[],"mappings":"AAIA,wBAAgB,gBAAgB,6CAU/B"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export declare function useGestureHandlerRef(): React.Ref<React.ComponentType<import("react-native-gesture-handler").PanGestureHandlerProps & React.RefAttributes<any>>>;
|
|
3
3
|
//# sourceMappingURL=useGestureHandlerRef.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGestureHandlerRef.d.ts","sourceRoot":"","sources":["../../../../src/utils/useGestureHandlerRef.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,
|
|
1
|
+
{"version":3,"file":"useGestureHandlerRef.d.ts","sourceRoot":"","sources":["../../../../src/utils/useGestureHandlerRef.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,wBAAgB,oBAAoB,6HAUnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyboardManager.d.ts","sourceRoot":"","sources":["../../../../src/utils/useKeyboardManager.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"useKeyboardManager.d.ts","sourceRoot":"","sources":["../../../../src/utils/useKeyboardManager.tsx"],"names":[],"mappings":"AAKA,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,OAAO;;iCAkC/C,OAAO;;EAiElB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { StackHeaderProps } from '../../types';
|
|
3
|
-
declare const
|
|
4
|
-
export default _default;
|
|
3
|
+
export declare const Header: React.NamedExoticComponent<StackHeaderProps>;
|
|
5
4
|
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../src/views/Header/Header.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../src/views/Header/Header.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAKpD,eAAO,MAAM,MAAM,8CA6DjB,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Route } from '@react-navigation/native';
|
|
3
3
|
import { Animated, StyleProp, ViewStyle } from 'react-native';
|
|
4
4
|
import type { Layout, Scene, StackHeaderMode } from '../../types';
|
|
5
|
-
export
|
|
5
|
+
export type Props = {
|
|
6
6
|
mode: StackHeaderMode;
|
|
7
7
|
layout: Layout;
|
|
8
8
|
scenes: (Scene | undefined)[];
|
|
@@ -16,5 +16,5 @@ export declare type Props = {
|
|
|
16
16
|
}) => void;
|
|
17
17
|
style?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export declare function HeaderContainer({ mode, scenes, layout, getPreviousScene, getFocusedRoute, onContentHeightChange, style, }: Props): JSX.Element;
|
|
20
20
|
//# sourceMappingURL=HeaderContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderContainer.d.ts","sourceRoot":"","sources":["../../../../../src/views/Header/HeaderContainer.tsx"],"names":[],"mappings":";AACA,OAAO,EAIL,KAAK,EACN,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAC;AAQhF,OAAO,KAAK,EACV,MAAM,EACN,KAAK,EACL,eAAe,EAGhB,MAAM,aAAa,CAAC;AAGrB,
|
|
1
|
+
{"version":3,"file":"HeaderContainer.d.ts","sourceRoot":"","sources":["../../../../../src/views/Header/HeaderContainer.tsx"],"names":[],"mappings":";AACA,OAAO,EAIL,KAAK,EACN,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAC;AAQhF,OAAO,KAAK,EACV,MAAM,EACN,KAAK,EACL,eAAe,EAGhB,MAAM,aAAa,CAAC;AAGrB,MAAM,MAAM,KAAK,GAAG;IAClB,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,CAAC,KAAK,GAAG,SAAS,CAAC,EAAE,CAAC;IAC9B,gBAAgB,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,KAAK,KAAK,GAAG,SAAS,CAAC;IACzE,eAAe,EAAE,MAAM,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE;QAC9B,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACrB,MAAM,EAAE,MAAM,CAAC;KAChB,KAAK,IAAI,CAAC;IACX,KAAK,CAAC,EAAE,QAAQ,CAAC,iBAAiB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;CAC1D,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,MAAM,EACN,MAAM,EACN,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,KAAK,GACN,EAAE,KAAK,eAkIP"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Layout, SceneProgress, StackHeaderOptions, StackHeaderStyleInterpolator } from '../../types';
|
|
3
|
-
|
|
3
|
+
type Props = Omit<StackHeaderOptions, 'headerStatusBarHeight'> & {
|
|
4
4
|
headerStatusBarHeight: number;
|
|
5
5
|
layout: Layout;
|
|
6
6
|
title: string;
|
|
@@ -9,6 +9,6 @@ declare type Props = Omit<StackHeaderOptions, 'headerStatusBarHeight'> & {
|
|
|
9
9
|
progress: SceneProgress;
|
|
10
10
|
styleInterpolator: StackHeaderStyleInterpolator;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export declare function HeaderSegment(props: Props): JSX.Element;
|
|
13
13
|
export {};
|
|
14
14
|
//# sourceMappingURL=HeaderSegment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderSegment.d.ts","sourceRoot":"","sources":["../../../../../src/views/Header/HeaderSegment.tsx"],"names":[],"mappings":";AAgBA,OAAO,KAAK,EACV,MAAM,EACN,aAAa,EACb,kBAAkB,EAClB,4BAA4B,EAC7B,MAAM,aAAa,CAAC;AAGrB,
|
|
1
|
+
{"version":3,"file":"HeaderSegment.d.ts","sourceRoot":"","sources":["../../../../../src/views/Header/HeaderSegment.tsx"],"names":[],"mappings":";AAgBA,OAAO,KAAK,EACV,MAAM,EACN,aAAa,EACb,kBAAkB,EAClB,4BAA4B,EAC7B,MAAM,aAAa,CAAC;AAGrB,KAAK,KAAK,GAAG,IAAI,CAAC,kBAAkB,EAAE,uBAAuB,CAAC,GAAG;IAC/D,qBAAqB,EAAE,MAAM,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,aAAa,CAAC;IACxB,iBAAiB,EAAE,4BAA4B,CAAC;CACjD,CAAC;AAEF,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,eA0KzC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { EdgeInsets } from 'react-native-safe-area-context';
|
|
3
3
|
import type { Layout } from '../types';
|
|
4
|
-
|
|
4
|
+
type Props = {
|
|
5
5
|
dark: boolean | undefined;
|
|
6
6
|
layout: Layout;
|
|
7
7
|
insets: EdgeInsets;
|
|
8
8
|
style: any;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export declare function ModalStatusBarManager({ dark, layout, insets, style }: Props): JSX.Element;
|
|
11
11
|
export {};
|
|
12
12
|
//# sourceMappingURL=ModalStatusBarManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalStatusBarManager.d.ts","sourceRoot":"","sources":["../../../../src/views/ModalStatusBarManager.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,
|
|
1
|
+
{"version":3,"file":"ModalStatusBarManager.d.ts","sourceRoot":"","sources":["../../../../src/views/ModalStatusBarManager.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,GAAG,CAAC;CACZ,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,KAAK,eA8B3E"}
|
|
@@ -6,7 +6,7 @@ export declare const MaybeScreenContainer: ({ enabled, ...rest }: ViewProps & {
|
|
|
6
6
|
}) => JSX.Element;
|
|
7
7
|
export declare const MaybeScreen: ({ enabled, active, ...rest }: ViewProps & {
|
|
8
8
|
enabled: boolean;
|
|
9
|
-
active: 0 | 1 | Animated.AnimatedInterpolation
|
|
9
|
+
active: 0 | 1 | Animated.AnimatedInterpolation<0 | 1>;
|
|
10
10
|
children: React.ReactNode;
|
|
11
11
|
freezeOnBlur?: boolean | undefined;
|
|
12
12
|
}) => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Screens.d.ts","sourceRoot":"","sources":["../../../../src/views/Screens.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAQ,SAAS,EAAE,MAAM,cAAc,CAAC;AAUzD,eAAO,MAAM,oBAAoB;aAItB,OAAO;cACN,MAAM,SAAS;iBAO1B,CAAC;AAEF,eAAO,MAAM,WAAW;aAKb,OAAO;YACR,CAAC,GAAG,CAAC,GAAG,SAAS,qBAAqB;
|
|
1
|
+
{"version":3,"file":"Screens.d.ts","sourceRoot":"","sources":["../../../../src/views/Screens.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAQ,SAAS,EAAE,MAAM,cAAc,CAAC;AAUzD,eAAO,MAAM,oBAAoB;aAItB,OAAO;cACN,MAAM,SAAS;iBAO1B,CAAC;AAEF,eAAO,MAAM,WAAW;aAKb,OAAO;YACR,CAAC,GAAG,CAAC,GAAG,SAAS,qBAAqB,CAAC,CAAC,GAAG,CAAC,CAAC;cAC3C,MAAM,SAAS;;iBAU1B,CAAC"}
|
|
@@ -2,11 +2,11 @@ import * as React from 'react';
|
|
|
2
2
|
import { Animated, StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
3
3
|
import type { EdgeInsets } from 'react-native-safe-area-context';
|
|
4
4
|
import type { GestureDirection, Layout, StackCardStyleInterpolator, TransitionSpec } from '../../types';
|
|
5
|
-
|
|
5
|
+
type Props = ViewProps & {
|
|
6
6
|
interpolationIndex: number;
|
|
7
7
|
closing: boolean;
|
|
8
|
-
next?: Animated.AnimatedInterpolation
|
|
9
|
-
current: Animated.AnimatedInterpolation
|
|
8
|
+
next?: Animated.AnimatedInterpolation<number>;
|
|
9
|
+
current: Animated.AnimatedInterpolation<number>;
|
|
10
10
|
gesture: Animated.Value;
|
|
11
11
|
layout: Layout;
|
|
12
12
|
insets: EdgeInsets;
|
|
@@ -39,7 +39,7 @@ declare type Props = ViewProps & {
|
|
|
39
39
|
containerStyle?: StyleProp<ViewStyle>;
|
|
40
40
|
contentStyle?: StyleProp<ViewStyle>;
|
|
41
41
|
};
|
|
42
|
-
export
|
|
42
|
+
export declare class Card extends React.Component<Props> {
|
|
43
43
|
static defaultProps: {
|
|
44
44
|
shadowEnabled: boolean;
|
|
45
45
|
gestureEnabled: boolean;
|