@momo-kits/tab-view 0.157.1-test.1 → 0.157.2-test.1

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.
Files changed (2) hide show
  1. package/index.tsx +3 -0
  2. package/package.json +1 -1
package/index.tsx CHANGED
@@ -23,6 +23,7 @@ import {
23
23
  ApplicationContext,
24
24
  MiniAppContext,
25
25
  ScreenContext,
26
+ useScreenRegistry,
26
27
  } from '@momo-kits/foundation';
27
28
 
28
29
  const TabComponent: ForwardRefRenderFunction<TabViewRef, TabViewProps> = (
@@ -43,6 +44,7 @@ const TabComponent: ForwardRefRenderFunction<TabViewRef, TabViewProps> = (
43
44
  },
44
45
  ref,
45
46
  ) => {
47
+ useScreenRegistry('TabView');
46
48
  const startPage =
47
49
  initialPage > tabs.length - 1 ? tabs.length - 1 : initialPage;
48
50
  const [selectedIndex, setSelectedIndex] = useState(startPage);
@@ -179,6 +181,7 @@ const TabComponent: ForwardRefRenderFunction<TabViewRef, TabViewProps> = (
179
181
  };
180
182
 
181
183
  const TabView = forwardRef(TabComponent);
184
+ TabView.displayName = 'TabView';
182
185
 
183
186
  export { CardTabBar, ScrollableTabBar, TabBar, TabView };
184
187
  export type { TabViewProps, TabViewRef, Tab };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/tab-view",
3
- "version": "0.157.1-test.1",
3
+ "version": "0.157.2-test.1",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "peerDependencies": {