@momo-kits/tab-view 0.153.2 → 0.154.1-beta.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/tab-view",
3
- "version": "0.153.2",
3
+ "version": "0.154.1-beta.0",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "peerDependencies": {
@@ -6,7 +6,7 @@ import {
6
6
  BadgeDot,
7
7
  Icon,
8
8
  MiniAppContext,
9
- scaleSize,
9
+ useScaleSize,
10
10
  ScreenContext,
11
11
  Spacing,
12
12
  Text,
@@ -32,6 +32,7 @@ const TabItem: FC<TabItemProps> = ({
32
32
  renderIcon,
33
33
  accessibilityLabel,
34
34
  } = tab;
35
+ const scaledHeight = useScaleSize(68);
35
36
  const typography: Typography = active
36
37
  ? 'header_s_semibold'
37
38
  : 'body_default_regular';
@@ -111,7 +112,7 @@ const TabItem: FC<TabItemProps> = ({
111
112
  styles.tabItem,
112
113
  {
113
114
  width,
114
- height: scaleSize(68),
115
+ height: scaledHeight,
115
116
  flexDirection: 'column',
116
117
  overflow: 'hidden',
117
118
  paddingHorizontal: Spacing.M,