@momo-kits/foundation 0.76.1-beta.2 → 0.77.2

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.
@@ -4,6 +4,7 @@ import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
4
4
  import {Icon} from '../Icon';
5
5
  import {Text} from '../Text';
6
6
  import {ApplicationContext} from './index';
7
+ import {View} from 'react-native';
7
8
 
8
9
  const Tab = createBottomTabNavigator();
9
10
 
@@ -21,11 +22,13 @@ const BottomTab: FC<BottomTabProps> = ({tabs, listeners}) => {
21
22
  options={{
22
23
  tabBarLabel: ({color, focused}) => {
23
24
  return (
24
- <Text
25
- typography={focused ? 'label_xs' : 'description_xs'}
26
- color={color}>
27
- {item.label}
28
- </Text>
25
+ <View style={{paddingHorizontal: 16}}>
26
+ <Text
27
+ typography={focused ? 'label_xs' : 'description_xs'}
28
+ color={color}>
29
+ {item.label}
30
+ </Text>
31
+ </View>
29
32
  );
30
33
  },
31
34
  tabBarBadge: item?.badgeLabel,
package/Input/Input.tsx CHANGED
@@ -94,6 +94,7 @@ const Input: FC<InputProps> = ({
94
94
  styles.input,
95
95
  {
96
96
  color: textColor,
97
+ fontFamily: `${theme.font}-Regular`,
97
98
  },
98
99
  ]}
99
100
  textBreakStrategy="highQuality"
package/Input/styles.ts CHANGED
@@ -1,9 +1,15 @@
1
1
  import {StyleSheet} from 'react-native';
2
2
  import {Radius, Spacing} from '../Consts';
3
+ import {scaleSize} from '../Text';
3
4
 
4
5
  export default StyleSheet.create({
5
6
  //input style
6
- input: {width: '100%', paddingLeft: Spacing.M, height: '100%'},
7
+ input: {
8
+ width: '100%',
9
+ paddingLeft: Spacing.M,
10
+ height: '100%',
11
+ fontSize: scaleSize(15),
12
+ },
7
13
  wrapper: {
8
14
  width: '100%',
9
15
  },
@@ -11,7 +17,6 @@ export default StyleSheet.create({
11
17
  borderWidth: 1,
12
18
  borderRadius: Radius.S,
13
19
  height: 56,
14
- paddingVertical: 8,
15
20
  },
16
21
  smallContainer: {
17
22
  borderRadius: Radius.S,
@@ -65,6 +70,8 @@ export default StyleSheet.create({
65
70
  width: '100%',
66
71
  flex: 1,
67
72
  paddingRight: Spacing.XS,
73
+ paddingVertical: Spacing.XS,
74
+ fontSize: scaleSize(15),
68
75
  },
69
76
  textAreaWrapper: {
70
77
  borderWidth: 1,
@@ -98,6 +105,8 @@ export default StyleSheet.create({
98
105
  height: 36,
99
106
  marginLeft: Spacing.S,
100
107
  flex: 1,
108
+ fontSize: scaleSize(15),
109
+ paddingVertical: Spacing.XS,
101
110
  },
102
111
  searchInputView: {
103
112
  flexDirection: 'row',
@@ -116,7 +125,8 @@ export default StyleSheet.create({
116
125
  width: '100%',
117
126
  paddingLeft: Spacing.M,
118
127
  height: '100%',
119
- fontSize: 20,
128
+ fontSize: scaleSize(20),
129
+ paddingVertical: Spacing.S,
120
130
  fontWeight: 'bold',
121
131
  },
122
132
  });
package/Layout/Screen.tsx CHANGED
@@ -1,10 +1,4 @@
1
- import {
2
- Animated,
3
- KeyboardAvoidingView,
4
- Platform,
5
- Text,
6
- View,
7
- } from 'react-native';
1
+ import {Animated, KeyboardAvoidingView, Platform, View} from 'react-native';
8
2
  import {useHeaderHeight} from '@react-navigation/stack';
9
3
  import {useSafeAreaInsets} from 'react-native-safe-area-context';
10
4
  import React, {useContext, useEffect, useRef} from 'react';
@@ -166,6 +160,7 @@ const Screen: React.FC<ScreenProps> = ({
166
160
  })}>
167
161
  <Component
168
162
  {...scrollViewProps}
163
+ showsVerticalScrollIndicator={false}
169
164
  onScroll={handleScroll}
170
165
  style={[Styles.flex, {marginTop: marginHeader}]}>
171
166
  {renderContent()}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.76.1-beta.2",
3
+ "version": "0.77.2",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {