
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-select-plus
Advanced tools
Simple select component for react-native.
$ npm install react-native-select-plus --save
or use yarn
$ yarn add react-native-select-plus
Note: Ensure to add and configure react-native-vector-icons to your project before using this package.
The snippet below shows how the component can be used
// import component
import React, { Component } from 'react';
import { View } from 'react-native';
import Select from 'react-native-select-plus';
class SelectExample extends Component {
this.state = {
value: null
};
this.items = [
{ key: 1, section: true, label: "Fruits" },
{ key: 2, label: "Red Apples" },
{ key: 3, label: "Cherries" },
{ key: 4, label: "Cranberries" },
{ key: 5, label: "Pink Grapefruit" },
{ key: 6, label: "Raspberries" },
{ key: 7, section: true, label: "Vegetables" },
{ key: 8, label: "Beets" },
{ key: 9, label: "Red Peppers" },
{ key: 10, label: "Radishes" },
{ key: 11, label: "Radicchio" },
{ key: 12, label: "Red Onions" },
{ key: 13, label: "Red Potatoes" },
{ key: 14, label: "Rhubarb" },
{ key: 15, label: "Tomatoes" }
];
onSelectedItemsChange = (key, value) => {
this.setState({ value: value });
};
render() {
const { value } = this.state;
return (
<View style={{ flex: 1 }}>
<Select
data={this.items}
width={250}
placeholder="Select a value ..."
onSelect={this.onSelectedItemsChange.bind(this)}
data={data}
search={true}
/>
<View>
{this.state.value}
</View>
</View>
);
}
}
| Prop Name | Data Type | Default Values | Description |
|---|---|---|---|
| onSelect | function | null | function that executes on selection of an option |
| placeholder | string | Select | Text to show as default text |
| searchPlaceholder | string | Search | Text to show as default search text |
| style | object | null | To style the select box. |
| textStyle | object | null | To style the text shown in the box |
| search | bool | true | Use search in conponent |
| initKey | number | 0 | Init key for default option |
| parentScrollEnable | function | null | Hack for Android nested ScrollView |
| parentScrollDisable | function | null | Hack for Android nested ScrollView |
The MIT License (MIT). Please see LICENSE for more information.
FAQs
Select component for react-native
We found that react-native-select-plus 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.