@momo-kits/foundation 0.77.1 → 0.77.2-beta.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.
@@ -4,6 +4,8 @@ import Navigator from './Navigator';
4
4
  import {PopupNotifyProps} from '../Popup/types';
5
5
  import Navigation from './Navigation';
6
6
 
7
+ type Screen = React.ComponentType<NavigationScreenProps>;
8
+
7
9
  export type Theme = {
8
10
  dark: boolean;
9
11
  colors: {
@@ -65,7 +67,7 @@ export type Context = {
65
67
  };
66
68
 
67
69
  export type NavigationContainerProps = {
68
- screen: React.ElementType;
70
+ screen: Screen;
69
71
  options?: NavigationOptions;
70
72
  theme: Theme;
71
73
  maxApi?: any;
@@ -91,13 +93,12 @@ export interface ScreenProps extends ViewProps {
91
93
 
92
94
  export type ScreenParams = {
93
95
  [key: string]: any;
94
- screen: React.ElementType;
96
+ screen: Screen;
95
97
  options?: NavigationOptions;
96
98
  };
97
99
 
98
100
  export interface ModalParams extends ScreenParams {
99
101
  [key: string]: any;
100
- screen: React.ElementType;
101
102
  onDismiss?: () => void;
102
103
  barrierDismissible?: boolean;
103
104
  }
@@ -163,7 +164,7 @@ export type BottomTabItemProps = {
163
164
  icon: string;
164
165
  showDot?: boolean;
165
166
  badgeLabel?: string;
166
- screen: React.ComponentType<any>;
167
+ screen: React.ComponentType;
167
168
  };
168
169
 
169
170
  export type BottomTabProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.77.1",
3
+ "version": "0.77.2-beta.01",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {