@momo-kits/foundation 0.92.29-optimize.15 → 0.92.29-optimize.16

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);
@@ -334,13 +333,15 @@ const HeaderToolkitAction: React.FC<any> = ({
334
333
  const onMore = () => {
335
334
  onAction?.('onMore');
336
335
  navigator?.maxApi?.dispatchFunction?.(
337
- 'showTools',
338
- {runtimeTools},
339
- (res: {item: {action?: string; key: string}}) => {
340
- const {item} = res;
341
- navigator?.toolkitCallback?.(item.key);
342
- getToolkitConfig();
343
- }
336
+ 'showToolkit',
337
+ {
338
+ tools: miniContext?.toolkitConfig?.oldTools ?? [
339
+ 'addFavorite',
340
+ 'addShortcut',
341
+ 'share',
342
+ ],
343
+ },
344
+ () => {}
344
345
  );
345
346
  };
346
347
 
@@ -385,7 +386,7 @@ const HeaderToolkitAction: React.FC<any> = ({
385
386
  onPress={() => {
386
387
  navigator?.maxApi?.dispatchFunction?.(
387
388
  'onToolAction',
388
- [pinTool?.key],
389
+ {item: pinTool},
389
390
  () => {
390
391
  getToolkitConfig();
391
392
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.92.29-optimize.15",
3
+ "version": "0.92.29-optimize.16",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},