react-native-autocomplete-input
Advanced tools
Comparing version 4.1.0 to 4.2.0-rc.0
12
index.js
@@ -13,2 +13,4 @@ import React, { Component } from 'react'; | ||
// Keep this line for downwards compatibility with RN. | ||
// eslint-disable-next-line react/forbid-foreign-prop-types | ||
const ViewPropTypes = RNViewPropTypes || View.propTypes; | ||
@@ -85,3 +87,2 @@ | ||
data: [], | ||
defaultValue: '', | ||
keyboardShouldPersistTaps: 'always', | ||
@@ -97,3 +98,2 @@ onStartShouldSetResponderCapture: () => false, | ||
super(props); | ||
this.state = { data: props.data }; | ||
this.resultList = null; | ||
@@ -107,6 +107,2 @@ this.textInput = null; | ||
componentWillReceiveProps({ data }) { | ||
this.setState({ data }); | ||
} | ||
onEndEditing(e) { | ||
@@ -149,4 +145,4 @@ this.props.onEndEditing && this.props.onEndEditing(e); | ||
renderResultList() { | ||
const { data } = this.state; | ||
const { | ||
data, | ||
listStyle, | ||
@@ -191,4 +187,4 @@ renderItem, | ||
render() { | ||
const { data } = this.state; | ||
const { | ||
data, | ||
containerStyle, | ||
@@ -195,0 +191,0 @@ hideResults, |
{ | ||
"name": "react-native-autocomplete-input", | ||
"version": "4.1.0", | ||
"version": "4.2.0-rc.0", | ||
"description": "Pure javascript autocomplete input for react-native", | ||
"main": "index.js", | ||
"options": { | ||
"mocha": "--require react-native-mock/mock.js --compilers js:babel-register ./__tests__/**/*.js" | ||
}, | ||
"scripts": { | ||
"coverage": "node_modules/.bin/nyc mocha $npm_package_options_mocha && node_modules/.bin/nyc report --reporter=lcov", | ||
"lint": "eslint ./*.js ./example/*.js", | ||
"test": "npm run lint && npm run testonly", | ||
"testonly": "mocha $npm_package_options_mocha" | ||
"lint": "eslint ./*.js ./example/*.js ./__tests__/*.js", | ||
"testonly": "jest" | ||
}, | ||
@@ -37,25 +33,21 @@ "repository": { | ||
"homepage": "https://github.com/l-urence/react-native-autocomplete-input#readme", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"babel-eslint": "^7.1.1", | ||
"babel-preset-react-native": "^1.9.1", | ||
"babel-register": "^6.9.0", | ||
"chai": "^3.5.0", | ||
"enzyme": "^2.3.0", | ||
"eslint": "^3.5.0", | ||
"eslint-config-airbnb": "^14.0.0", | ||
"eslint-plugin-babel": "^4.0.1", | ||
"eslint-plugin-import": "^2.2.0", | ||
"eslint-plugin-jsx-a11y": "^3.0.2", | ||
"eslint-plugin-react": "^6.2.0", | ||
"estraverse-fb": "^1.3.1", | ||
"mocha": "^3.2.0", | ||
"nyc": "^10.1.2", | ||
"react": "~15.5.4", | ||
"react-addons-test-utils": "^15.6.2", | ||
"react-dom": "~15.5.4", | ||
"react-native": "0.59.8", | ||
"react-native-mock": "^0.3.1", | ||
"sinon": "^1.17.4" | ||
"@babel/core": "^7.5.5", | ||
"@babel/runtime": "^7.5.5", | ||
"@react-native-community/eslint-config": "^0.0.5", | ||
"babel-jest": "^24.8.0", | ||
"eslint": "^6.1.0", | ||
"eslint-config-airbnb": "^17.1.1", | ||
"eslint-plugin-import": "^2.18.2", | ||
"eslint-plugin-jest": "^22.13.6", | ||
"eslint-plugin-jsx-a11y": "^6.2.3", | ||
"jest": "^24.8.0", | ||
"metro-react-native-babel-preset": "^0.55.0", | ||
"react": "^16.8.6", | ||
"react-native": "^0.60.4", | ||
"react-test-renderer": "16.8.6" | ||
}, | ||
"jest": { | ||
"preset": "react-native" | ||
} | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
14
13419
248
1