@momo-kits/foundation 0.92.1-tracking.4 → 0.92.1-tracking.6
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
|
-
|
|
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,
|
|
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 {
|
|
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
|
-
|
|
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
|
package/Application/types.ts
CHANGED