@react-motion-router/stack 2.0.0-beta.sha-4fafa70 → 2.0.0-beta.sha-7a69b61
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/build/Screen.d.ts +9 -9
- package/build/__tests__/navigation.test.d.ts +1 -0
- package/build/__tests__/screen.test.d.ts +1 -0
- package/build/index.js +235 -196
- package/build/index.js.map +1 -1
- package/package.json +4 -3
package/build/Screen.d.ts
CHANGED
|
@@ -2,16 +2,16 @@ import { ScreenBase, PlainObject, ScreenBaseProps, ScreenBaseState, ScreenBaseCo
|
|
|
2
2
|
import { Navigation } from './Navigation';
|
|
3
3
|
import { RouteProp, SwipeDirection } from './common/types';
|
|
4
4
|
import { Router } from './Router';
|
|
5
|
-
export type ScreenComponentProps<T extends PlainObject> = ScreenBaseComponentProps<RouteProp<T>, Navigation>;
|
|
5
|
+
export type ScreenComponentProps<T extends PlainObject = object> = ScreenBaseComponentProps<RouteProp<T>, Navigation>;
|
|
6
6
|
export interface ScreenConfig extends ScreenBaseConfig<RouteProp> {
|
|
7
|
-
title?: string;
|
|
8
|
-
presentation?: 'default' | 'dialog' | 'modal';
|
|
9
|
-
keepAlive?: boolean;
|
|
10
|
-
gestureDirection?: SwipeDirection;
|
|
11
|
-
gestureAreaWidth?: number;
|
|
12
|
-
gestureMinFlingVelocity?: number;
|
|
13
|
-
gestureHysteresis?: number;
|
|
14
|
-
gestureDisabled?: boolean;
|
|
7
|
+
readonly title?: string;
|
|
8
|
+
readonly presentation?: 'default' | 'dialog' | 'modal';
|
|
9
|
+
readonly keepAlive?: boolean;
|
|
10
|
+
readonly gestureDirection?: SwipeDirection;
|
|
11
|
+
readonly gestureAreaWidth?: number;
|
|
12
|
+
readonly gestureMinFlingVelocity?: number;
|
|
13
|
+
readonly gestureHysteresis?: number;
|
|
14
|
+
readonly gestureDisabled?: boolean;
|
|
15
15
|
}
|
|
16
16
|
export interface ScreenProps extends ScreenBaseProps {
|
|
17
17
|
config?: ScreenConfig;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|