react-native-autocomplete-input
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -136,2 +136,10 @@ import React, { Component } from 'react'; | ||
/** | ||
* Proxy `isFocused()` to autocomplete's text input. | ||
*/ | ||
isFocused() { | ||
const { textInput } = this; | ||
return textInput && textInput.isFocused(); | ||
} | ||
renderResultList() { | ||
@@ -138,0 +146,0 @@ const { data } = this.state; |
{ | ||
"name": "react-native-autocomplete-input", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "Pure javascript autocomplete input for react-native", | ||
@@ -56,3 +56,3 @@ "main": "index.js", | ||
"react-dom": "~15.5.4", | ||
"react-native": "^0.40.0", | ||
"react-native": "0.59.8", | ||
"react-native-mock": "^0.3.1", | ||
@@ -59,0 +59,0 @@ "sinon": "^1.17.4" |
@@ -31,14 +31,15 @@ # react-native-autocomplete-input | ||
const { query } = this.state; | ||
const data = this._filterData(query) | ||
return (<Autocomplete | ||
data={data} | ||
defaultValue={query} | ||
onChangeText={text => this.setState({ query: text })} | ||
renderItem={({ item, i }) => ( | ||
<TouchableOpacity onPress={() => this.setState({ query: item })}> | ||
<Text>{item}</Text> | ||
</TouchableOpacity> | ||
)} | ||
/>); | ||
const data = this._filterData(query); | ||
return ( | ||
<Autocomplete | ||
data={data} | ||
defaultValue={query} | ||
onChangeText={text => this.setState({ query: text })} | ||
renderItem={({ item, i }) => ( | ||
<TouchableOpacity onPress={() => this.setState({ query: item })}> | ||
<Text>{item}</Text> | ||
</TouchableOpacity> | ||
)} | ||
/> | ||
); | ||
} | ||
@@ -45,0 +46,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
13841
251
108
0