Socket
Socket
Sign inDemoInstall

react-native-searchable-dropdown

Package Overview
Dependencies
0
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

26

index.js

@@ -35,3 +35,3 @@ import React, { Component } from 'react';

}
static getDerivedStateFromProps (props, store) {

@@ -60,5 +60,9 @@ let listItems = props.items ? props.items : [ { id: 0, 'name': '' } ];

this.setState({listItems: ac, item: item });
setTimeout(() => {
this.props.onTextChange(searchedText);
}, 0);
const onTextChange = this.props.onTextChange;
if (onTextChange && typeof onTextChange === 'function') {
setTimeout(() => {
onTextChange(searchedText);
}, 0);
}
};

@@ -85,4 +89,11 @@

underlineColorAndroid={this.props.underlineColorAndroid}
onFocus={() => {
this.setState({ focus: true, item: { name: '', id: 0 } })
onFocus={() => {
this.setState({
focus: true,
item: {
name: '',
id: 0
},
listItems: this.props.items
});
}}

@@ -93,3 +104,3 @@ onBlur={() => {

ref={(e) => this.input = e}
onChangeText={(text) => {
onChangeText={(text) => {
this.searchedItems(text)}

@@ -105,2 +116,1 @@ }

}
{
"name": "react-native-searchable-dropdown",
"version": "1.0.2",
"version": "1.0.3",
"description": "Searchable Dropdown",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc