
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
react-native-input-select
Advanced tools
A customizable dropdown selection package for react-native for android and iOS with multiple select and search capabilities.
A customizable dropdown selection package for react-native for android and iOS with multiple select and search capabilities.
npm install react-native-input-select
yarn add react-native-input-select
Multiple Select | Single Select | Search |
---|---|---|
import React from 'react';
import Dropdown from 'react-native-input-select';
export default function App() {
const [country, setCountry] = React.useState<number | undefined>();
return (
<Dropdown
label="Country"
placeholder="Select an option..."
options={[
{ name: 'Albania', code: 'AL' },
{ name: 'Åland Islands', code: 'AX' },
{ name: 'Algeria', code: 'DZ' },
{ name: 'American Samoa', code: 'AS' },
{ name: 'Andorra', code: 'AD' },
{ name: 'Angola', code: 'AO' },
{ name: 'Anguilla', code: 'AI' },
{ name: 'Antarctica', code: 'AQ' },
{ name: 'Antigua and Barbuda', code: 'AG' },
]}
optionLabel={'name'}
optionValue={'code'}
selectedValue={country}
onValueChange={(value) => setCountry(value)}
primaryColor={'green'}
/>
);
}
Proptypes | Datatype | Example |
---|---|---|
label | string | Countries |
placeholder | string | Select a country |
options | Array | [{ name: 'Albania', code: 'AL' }, { name: 'Åland Islands', code: 'AX' }] |
optionLabel | string | name |
optionValue | string | code |
error | string | This is a required field |
helperText | string | Only countries in the east are listed |
selectedValue | string or Array | AL or [AL, AX] |
onValueChange | function | ()=>{} |
isMultiple | Boolean | true |
isSearchable | Boolean | true |
disabled | Boolean | true |
labelStyle | Object | {backgroundColor: 'red', borderRadius: 0, ...} |
dropdownStyle | Object | {borderColor: 'blue', margin: 5, borderWidth:0 ...} |
dropdownContainerStyle | Object | {backgroundColor: 'red', width: '30%', ...} |
searchInputStyle | Object | {backgroundColor: 'red', borderRadius: 0, ...} |
selectedItemStyle | Object | {backgroundColor: 'red', color: 'yellow', ...} |
multipleSelectedItemStyle | Object | {backgroundColor: 'red', color: 'yellow', ...} |
modalBackgroundStyle | Object | {backgroundColor: 'blue', ...} |
modalOptionsContainer | Object | {padding: 5} |
dropdownErrorStyle | Object | {borderWidth: 2, borderStyle: 'solid'} |
dropdownErrorTextStyle | Object | {color: 'red', fontWeight:500} |
dropdownHelperTextStyle | Object | {color: 'green', fontWeight:500} |
primaryColor | string | blue |
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
FAQs
A customizable dropdown selection package for react-native for android and iOS with multiple select and search capabilities.
The npm package react-native-input-select receives a total of 1,569 weekly downloads. As such, react-native-input-select popularity was classified as popular.
We found that react-native-input-select demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.