@momo-kits/foundation 0.89.1-beta.3 → 0.89.1-beta.5

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.
@@ -288,7 +288,7 @@ const HeaderRightAction: React.FC<any> = ({children, ...restProps}) => {
288
288
  const HeaderToolkitAction: React.FC<any> = ({
289
289
  tintColor,
290
290
  pinnedTool,
291
- runtimeTools,
291
+ runtimeTools = [],
292
292
  preventBack,
293
293
  }) => {
294
294
  const {theme, navigator} = useContext(ApplicationContext);
@@ -139,7 +139,11 @@ export type PinnedToolType = {
139
139
  badgeType?: 'number' | 'dot';
140
140
  };
141
141
 
142
- export type RuntimeToolType = {};
142
+ export type RuntimeToolType = {
143
+ title: {vi: string; en: string};
144
+ icon: string;
145
+ key: string;
146
+ };
143
147
 
144
148
  export interface NavigationOptions extends StackNavigationOptions {
145
149
  preventBack?: PopupNotifyProps;
@@ -149,7 +153,7 @@ export interface NavigationOptions extends StackNavigationOptions {
149
153
  customTitle?: TitleCustomProps;
150
154
  toolkitParams?: {
151
155
  pinnedTool?: PinnedToolType;
152
- runtimeTool?: RuntimeToolType;
156
+ runtimeTools?: RuntimeToolType[];
153
157
  };
154
158
  }
155
159
 
@@ -134,7 +134,7 @@ const getOptions = (params: NavigationOptions, theme: Theme) => {
134
134
  <HeaderToolkitAction
135
135
  preventBack={params.preventBack}
136
136
  pinnedTool={params.toolkitParams?.pinnedTool}
137
- runtimeTools={params.toolkitParams?.runtimeTool}
137
+ runtimeTools={params.toolkitParams?.runtimeTools}
138
138
  {...props}
139
139
  />
140
140
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.89.1-beta.3",
3
+ "version": "0.89.1-beta.5",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {