@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 = (tools: any[]) => {
333
+ const onMore = () => {
335
334
  onAction?.('onMore');
336
- navigator?.maxApi?.dispatchFunction?.('showToolkit', {tools}, () => {});
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={() => onMore(toolConfig?.tools)}>
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}]} />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.92.29-optimize.8",
3
+ "version": "0.92.29-optimize.9",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},