@momo-kits/stepper 0.0.19 → 0.0.20
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/Stepper.js +5 -5
- package/package.json +1 -1
package/Stepper.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from 'react-native';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import {
|
|
7
|
-
Text, Colors, Image, TouchableOpacity
|
|
7
|
+
Text, Colors, Image, TouchableOpacity, ScaleSize
|
|
8
8
|
} from '@momo-kits/core';
|
|
9
9
|
|
|
10
10
|
const minus = 'https://img.mservice.io/momo_app_v2/new_version/img/appx_icon/24_navigation_minus_circle.png';
|
|
@@ -84,17 +84,17 @@ const getSize = (type) => {
|
|
|
84
84
|
const objStyle = {
|
|
85
85
|
large: {
|
|
86
86
|
size: {
|
|
87
|
-
width: 32,height: 24 // height: 26
|
|
87
|
+
width: 32,height: 24, fontSize: ScaleSize(14) // height: 26
|
|
88
88
|
},
|
|
89
89
|
},
|
|
90
90
|
medium: {
|
|
91
91
|
size: {
|
|
92
|
-
width: 28, height: 24// height: 24
|
|
92
|
+
width: 28, height: 24, fontSize: ScaleSize(12)// height: 24
|
|
93
93
|
},
|
|
94
94
|
},
|
|
95
95
|
small: {
|
|
96
96
|
size: {
|
|
97
|
-
width: 20, height: 16// height: 16
|
|
97
|
+
width: 20, height: 16, fontSize: ScaleSize(10)// height: 16
|
|
98
98
|
},
|
|
99
99
|
}
|
|
100
100
|
|
|
@@ -210,7 +210,7 @@ export default class Quantity extends Component {
|
|
|
210
210
|
<View style={[styles.numberBox, getStyle(size).size, valueStyle]}>
|
|
211
211
|
{
|
|
212
212
|
isInput ? <TextInput
|
|
213
|
-
style={[{textAlignVertical: 'center'}, getSize(size).size]}
|
|
213
|
+
style={[{textAlignVertical: 'center', padding: 0}, getSize(size).size]}
|
|
214
214
|
underlineColorAndroid="transparent"
|
|
215
215
|
value={value.toString()}
|
|
216
216
|
textAlign='center'
|