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