@momo-kits/foundation 0.92.29-optimize.8 → 0.92.29-optimize.9
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.
|
@@ -297,7 +297,6 @@ const HeaderRightAction: React.FC<any> = ({children, ...restProps}) => {
|
|
|
297
297
|
const HeaderToolkitAction: React.FC<any> = ({
|
|
298
298
|
tintColor,
|
|
299
299
|
pinnedTool,
|
|
300
|
-
runtimeTools = [],
|
|
301
300
|
preventClose,
|
|
302
301
|
}) => {
|
|
303
302
|
const {navigator} = useContext(ApplicationContext);
|
|
@@ -331,9 +330,13 @@ const HeaderToolkitAction: React.FC<any> = ({
|
|
|
331
330
|
);
|
|
332
331
|
};
|
|
333
332
|
|
|
334
|
-
const onMore = (
|
|
333
|
+
const onMore = () => {
|
|
335
334
|
onAction?.('onMore');
|
|
336
|
-
navigator?.maxApi?.dispatchFunction?.(
|
|
335
|
+
navigator?.maxApi?.dispatchFunction?.(
|
|
336
|
+
'showToolkit',
|
|
337
|
+
{tools: miniContext?.toolkitConfig?.oldTools},
|
|
338
|
+
() => {}
|
|
339
|
+
);
|
|
337
340
|
};
|
|
338
341
|
|
|
339
342
|
const onClose = () => {
|
|
@@ -401,7 +404,7 @@ const HeaderToolkitAction: React.FC<any> = ({
|
|
|
401
404
|
]}>
|
|
402
405
|
<TouchableOpacity
|
|
403
406
|
accessibilityLabel={'btn_navigation_more'}
|
|
404
|
-
onPress={
|
|
407
|
+
onPress={onMore}>
|
|
405
408
|
<Icon color={tintColor} source="navigation_more_horiz" size={20} />
|
|
406
409
|
</TouchableOpacity>
|
|
407
410
|
<View style={[styles.divider, {backgroundColor: tintColor}]} />
|