@momo-kits/foundation 0.81.1-optimize.11 → 0.81.1-optimize.13
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.
|
@@ -180,7 +180,7 @@ const BottomSheet: React.FC<BottomSheetParams> = props => {
|
|
|
180
180
|
<View
|
|
181
181
|
style={styles.estimate}
|
|
182
182
|
onLayout={e => {
|
|
183
|
-
const current = (e.nativeEvent.layout.height +
|
|
183
|
+
const current = (e.nativeEvent.layout.height + 72) / heightDevice;
|
|
184
184
|
if (current != estimate) {
|
|
185
185
|
setEstimate(current);
|
|
186
186
|
}
|
|
@@ -22,13 +22,18 @@ const TabScreen: React.FC<NavigationScreenProps> = ({route}) => {
|
|
|
22
22
|
if (route.params?.options) {
|
|
23
23
|
options = getOptions(route.params?.options, theme);
|
|
24
24
|
}
|
|
25
|
+
|
|
25
26
|
if (route.params?.nested) {
|
|
26
27
|
return (
|
|
27
28
|
<Stack.Navigator>
|
|
28
29
|
<Stack.Screen
|
|
29
30
|
name="Stack"
|
|
30
31
|
component={StackScreen}
|
|
31
|
-
initialParams={{
|
|
32
|
+
initialParams={{
|
|
33
|
+
screen: route.params?.screen,
|
|
34
|
+
options,
|
|
35
|
+
initialParams: route.params?.initialParams,
|
|
36
|
+
}}
|
|
32
37
|
options={{...getStackOptions()}}
|
|
33
38
|
/>
|
|
34
39
|
</Stack.Navigator>
|
|
@@ -40,7 +45,11 @@ const TabScreen: React.FC<NavigationScreenProps> = ({route}) => {
|
|
|
40
45
|
<Stack.Screen
|
|
41
46
|
name="Stack"
|
|
42
47
|
component={StackScreen}
|
|
43
|
-
initialParams={{
|
|
48
|
+
initialParams={{
|
|
49
|
+
screen: route.params?.screen,
|
|
50
|
+
options,
|
|
51
|
+
initialParams: route.params?.initialParams,
|
|
52
|
+
}}
|
|
44
53
|
options={{...getStackOptions(), ...route.params?.options}}
|
|
45
54
|
/>
|
|
46
55
|
</Stack.Navigator>
|
package/Application/types.ts
CHANGED
|
@@ -102,14 +102,14 @@ export type ScreenParams = {
|
|
|
102
102
|
|
|
103
103
|
export type ModalParams = {
|
|
104
104
|
[key: string]: any;
|
|
105
|
-
screen:
|
|
105
|
+
screen: React.ComponentType;
|
|
106
106
|
onDismiss?: () => void;
|
|
107
107
|
barrierDismissible?: boolean;
|
|
108
108
|
};
|
|
109
109
|
|
|
110
110
|
export type BottomSheetParams = {
|
|
111
111
|
[key: string]: any;
|
|
112
|
-
screen:
|
|
112
|
+
screen: React.ComponentType;
|
|
113
113
|
options: {
|
|
114
114
|
title: string;
|
|
115
115
|
surface?: boolean;
|