react-native-autocomplete-input
Advanced tools
Comparing version 3.3.1 to 3.4.0
19
index.js
@@ -1,2 +0,3 @@ | ||
import React, { Component, PropTypes } from 'react'; | ||
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { | ||
@@ -8,5 +9,8 @@ ListView, | ||
TextInput, | ||
View | ||
View, | ||
ViewPropTypes as RNViewPropTypes | ||
} from 'react-native'; | ||
const ViewPropTypes = RNViewPropTypes || View.propTypes; | ||
class Autocomplete extends Component { | ||
@@ -19,3 +23,3 @@ static propTypes = { | ||
*/ | ||
containerStyle: View.propTypes.style, | ||
containerStyle: ViewPropTypes.style, | ||
/** | ||
@@ -34,7 +38,10 @@ * Assign an array of data objects which should be | ||
*/ | ||
inputContainerStyle: View.propTypes.style, | ||
inputContainerStyle: ViewPropTypes.style, | ||
/* | ||
* Set `keyboardShouldPersistTaps` to true if RN version is <= 0.39. | ||
*/ | ||
keyboardShouldPersistTaps: ListView.propTypes.keyboardShouldPersistTaps, | ||
keyboardShouldPersistTaps: PropTypes.oneOfType([ | ||
PropTypes.string, | ||
PropTypes.bool | ||
]), | ||
/* | ||
@@ -44,3 +51,3 @@ * These styles will be applied to the container which surrounds | ||
*/ | ||
listContainerStyle: View.propTypes.style, | ||
listContainerStyle: ViewPropTypes.style, | ||
/** | ||
@@ -47,0 +54,0 @@ * These style will be applied to the result list. |
{ | ||
"name": "react-native-autocomplete-input", | ||
"version": "3.3.1", | ||
"version": "3.4.0", | ||
"description": "Pure javascript autocomplete input for react-native", | ||
@@ -37,2 +37,5 @@ "main": "index.js", | ||
"homepage": "https://github.com/l-urence/react-native-autocomplete-input#readme", | ||
"dependencies": { | ||
"prop-types": "^15.5.10" | ||
}, | ||
"devDependencies": { | ||
@@ -39,0 +42,0 @@ "babel-eslint": "^7.1.1", |
12913
217
1
+ Addedprop-types@^15.5.10
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedprop-types@15.8.1(transitive)
+ Addedreact-is@16.13.1(transitive)