@momo-kits/foundation 0.77.7 → 0.77.8
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.
|
@@ -41,8 +41,8 @@ const BottomTab: React.FC<BottomTabProps> = ({tabs, listeners}) => {
|
|
|
41
41
|
alignSelf: 'center',
|
|
42
42
|
fontFamily: `${theme.font}-Bold`,
|
|
43
43
|
},
|
|
44
|
-
tabBarIcon: ({color
|
|
45
|
-
<Icon source={item.icon} color={color} size={
|
|
44
|
+
tabBarIcon: ({color}) => (
|
|
45
|
+
<Icon source={item.icon} color={color} size={28} />
|
|
46
46
|
),
|
|
47
47
|
}}
|
|
48
48
|
/>
|
|
@@ -13,25 +13,20 @@ class Navigation {
|
|
|
13
13
|
this.theme = theme;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
private
|
|
16
|
+
private filterParams = (params: NavigationOptions) => {
|
|
17
17
|
if (params.headerRight) {
|
|
18
18
|
const headerRight = params.headerRight?.();
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
headerRight?.type !== HeaderToolkitAction
|
|
22
|
-
) {
|
|
19
|
+
const type = headerRight?.type;
|
|
20
|
+
if (type !== HeaderRightAction && type !== HeaderToolkitAction) {
|
|
23
21
|
console.warn(
|
|
24
22
|
'headerRight not return element type of HeaderRightAction | HeaderToolkitAction, Please migrate to use of kits.',
|
|
25
23
|
);
|
|
24
|
+
delete params.headerRight;
|
|
26
25
|
}
|
|
27
26
|
}
|
|
28
27
|
return params;
|
|
29
28
|
};
|
|
30
29
|
|
|
31
|
-
private filterParams = (params: NavigationOptions) => {
|
|
32
|
-
return params;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
30
|
setOptions = (params: NavigationOptions) => {
|
|
36
31
|
if (__DEV__) {
|
|
37
32
|
params = this.filterParams(params);
|