@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 +1 -1
- package/tabItem/TabItem.tsx +3 -2
package/package.json
CHANGED
package/tabItem/TabItem.tsx
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
BadgeDot,
|
|
7
7
|
Icon,
|
|
8
8
|
MiniAppContext,
|
|
9
|
-
|
|
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:
|
|
115
|
+
height: scaledHeight,
|
|
115
116
|
flexDirection: 'column',
|
|
116
117
|
overflow: 'hidden',
|
|
117
118
|
paddingHorizontal: Spacing.M,
|