@momo-kits/stepper 0.0.24 → 0.0.25

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 CHANGED
@@ -2,7 +2,6 @@ import React, {Component} from 'react';
2
2
  import {View, StyleSheet, TextInput, Keyboard} from 'react-native';
3
3
  import PropTypes from 'prop-types';
4
4
  import {Text, Colors, Image, TouchableOpacity} from '@momo-kits/core';
5
- import {max, min} from 'react-native-reanimated';
6
5
 
7
6
  const minus =
8
7
  'https://img.mservice.io/momo_app_v2/new_version/img/appx_icon/24_navigation_minus_circle.png';
@@ -188,8 +187,6 @@ export default class Quantity extends Component {
188
187
  this.onChangeValue(value, type);
189
188
  });
190
189
  }
191
-
192
- console.log(value, min, max);
193
190
  };
194
191
 
195
192
  onPress =
@@ -259,7 +256,7 @@ export default class Quantity extends Component {
259
256
  <View style={[styles.numberBox, getStyle(size).size, valueStyle]}>
260
257
  {isInput ? (
261
258
  <TextInput
262
- style={[{textAlignVertical: 'center'}, getSize(size).size]}
259
+ style={[{textAlignVertical: 'center', padding: 0}, getSize(size).size]}
263
260
  underlineColorAndroid="transparent"
264
261
  value={value.toString()}
265
262
  textAlign="center"
package/Stepper.web.js CHANGED
@@ -180,7 +180,7 @@ export default class Quantity extends Component {
180
180
  };
181
181
 
182
182
  onPress =
183
- (isIncrease = true) =>
183
+ (isIncrease = true, step) =>
184
184
  () => {
185
185
  const {isChangeValue, onConditionCheck} = this.props;
186
186
  const {value} = this.state;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/stepper",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "dependencies": {},