Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-autocomplete-input

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-autocomplete-input - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

8

index.js

@@ -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;

4

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc