@momo-kits/foundation 0.92.1-tracking.4 → 0.92.1-tracking.5

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.
@@ -23,7 +23,7 @@ const NavigationContainer: React.FC<NavigationContainerProps> = ({
23
23
  options,
24
24
  maxApi,
25
25
  localization,
26
- params,
26
+ initialParams,
27
27
  }) => {
28
28
  const context = useContext(MiniAppContext);
29
29
  const navigationRef = useRef<NavigationContainerRef>(null);
@@ -99,7 +99,7 @@ const NavigationContainer: React.FC<NavigationContainerProps> = ({
99
99
  <Stack.Screen
100
100
  name="Stack"
101
101
  component={StackScreen}
102
- initialParams={{screen, params}}
102
+ initialParams={{screen, initialParams}}
103
103
  options={{...getStackOptions(), ...options}}
104
104
  />
105
105
  <Stack.Screen
@@ -19,17 +19,22 @@ const StackScreen: React.FC<ScreenParams> = props => {
19
19
 
20
20
  const context = useContext(MiniAppContext);
21
21
 
22
- const {screen: Component, options, params}: ScreenParams = props.route.params;
22
+ const {
23
+ screen: Component,
24
+ options,
25
+ initialParams,
26
+ }: ScreenParams = props.route.params;
23
27
  const navigation = new Navigation(props.navigation, theme);
24
28
  const heightHeader = useHeaderHeight();
25
29
 
26
30
  const data = {
27
31
  ...props.route.params,
28
- params,
32
+ ...initialParams,
29
33
  navigation,
30
34
  };
31
35
 
32
36
  delete data.screen;
37
+ delete data.initialParams;
33
38
 
34
39
  /**
35
40
  * set options for screen
@@ -94,7 +94,7 @@ export type NavigationContainerProps = {
94
94
  options?: NavigationOptions;
95
95
  theme: Theme;
96
96
  maxApi: any;
97
- params: Record<string, any>;
97
+ initialParams: Record<string, any>;
98
98
  localization?: LocalizationObject;
99
99
  };
100
100
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.92.1-tracking.4",
3
+ "version": "0.92.1-tracking.5",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {