@momo-kits/auto-complete 0.0.41-beta → 0.0.49-beta

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.
Files changed (2) hide show
  1. package/AutoComplete.js +3 -3
  2. package/package.json +3 -4
package/AutoComplete.js CHANGED
@@ -10,11 +10,11 @@ import {
10
10
  } from 'react-native';
11
11
  import { get } from 'lodash';
12
12
  import PropTypes from 'prop-types';
13
- import { TouchableOpacity } from 'react-native-gesture-handler';
14
13
  import {
15
- ValueUtil, NumberUtil, Colors, Text
14
+ ValueUtil, NumberUtils, Colors, Text, RNGestureHandler
16
15
  } from '@momo-kits/core';
17
16
 
17
+ const { TouchableOpacity } = RNGestureHandler;
18
18
  export default class AutoComplete extends Component {
19
19
  constructor(props) {
20
20
  super(props);
@@ -67,7 +67,7 @@ export default class AutoComplete extends Component {
67
67
  getValueByKey = (key, value) => {
68
68
  const splitKey = key.split('-');
69
69
  return splitKey.length > 1 ? splitKey.reduce((result, item, index) => result = result + value[item] + (index === splitKey.length - 1 ? '' : !!value[item] ? ' ' : ''), '')
70
- : key === 'phone' ? NumberUtil.formatPhoneNumberVN(value[key]) : value[key];
70
+ : key === 'phone' ? NumberUtils.formatPhoneNumberVN(value[key]) : value[key];
71
71
  };
72
72
 
73
73
  /**
package/package.json CHANGED
@@ -1,16 +1,15 @@
1
1
  {
2
2
  "name": "@momo-kits/auto-complete",
3
- "version": "0.0.41-beta",
3
+ "version": "0.0.49-beta",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "dependencies": {},
7
7
  "peerDependencies": {
8
8
  "react": "16.9.0",
9
9
  "react-native": ">=0.55",
10
- "prop-types": "^15.7.2",
10
+ "@momo-kits/core": ">=0.0.4-beta",
11
11
  "lodash": "^4.17.15",
12
- "react-native-gesture-handler": "^1.5.5",
13
- "@momo-kits/core": ">=0.0.4-beta"
12
+ "prop-types": "^15.7.2"
14
13
  },
15
14
  "devDependencies": {},
16
15
  "license": "MoMo"