Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
react-native-searchable-dropdown
Advanced tools
Searchable Dropdown to help you search with in the list (using ListView
and FlatList
), and you can pick single item.
npm install --save react-native-searchable-dropdown
Props | Description |
---|---|
items | dropdown items |
defaultIndex | Default selected index of items. (optional) |
onTextChange | on text change you can passs onTextChange and catch the input text. (optional) |
onItemSelect | on item selection you can passs onItemSelect and catch the input item. |
containerStyle | component container style |
textInputStyle | TextInput style |
itemStyle | items on dropdown |
itemTextStyle | item text |
resetValue | reset textInput Value with true and false state |
placeholder | textInput placeholder |
placeholderTextColor | textInput placeholderTextColor |
itemsContainerStyle | items container style you can pass maxHeight to restrict the items dropdown hieght |
underlineColorAndroid | TextInput underline height |
listType | default will be FlatList or you can pass ListView |
import React, { Component } from 'react';
import SearchableDropdown from 'react-native-searchable-dropdown';
var items = [
{
id: 1,
name: 'JavaScript',
},
{
id: 2,
name: 'Java',
},
{
id: 3,
name: 'Ruby',
},
{
id: 4,
name: 'React Native',
},
{
id: 5,
name: 'PHP',
},
{
id: 6,
name: 'Python',
},
{
id: 7,
name: 'Go',
},
{
id: 8,
name: 'Swift',
},
];
class Example extends Component {
render() {
return (
<SearchableDropdown
onTextChange={text => alert(text)}
onItemSelect={item => alert(JSON.stringify(item))}
containerStyle={{ padding: 5 }}
textInputStyle={{
padding: 12,
borderWidth: 1,
borderColor: '#ccc',
borderRadius: 5,
}}
itemStyle={{
padding: 10,
marginTop: 2,
backgroundColor: '#ddd',
borderColor: '#bbb',
borderWidth: 1,
borderRadius: 5,
}}
itemTextStyle={{ color: '#222' }}
itemsContainerStyle={{ maxHeight: 140 }}
items={items}
defaultIndex={2}
placeholder="placeholder"
resetValue={false}
underlineColorAndroid="transparent"
/>
);
}
}
1.0.6
FAQs
Searchable Dropdown
The npm package react-native-searchable-dropdown receives a total of 1,844 weekly downloads. As such, react-native-searchable-dropdown popularity was classified as popular.
We found that react-native-searchable-dropdown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.