
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@ismnoiet/react-native-dropdown
Advanced tools
The high-quality native iOS dropdown menu for react native. A component that offers a veriety of options...
Installation
npm install --save @ismnoiet/react-native-dropdown
yarn add @ismnoiet/react-native-dropdown
Link
react-native link @ismnoiet/react-native-dropdown
If you want a working example you can check this simple example, otherwise you can use the following example as a starting point.
import DropDownMenu from '@ismnoiet/react-native-dropdown'
<View style={{flex: 1, flexDirection: 'row'}}>
<DropDownMenu
style={{ height: 50, justifyContent: 'center', width: 300 }}
data={['option1', 'option2', 'option3']}
onChange={ (data)=>{ console.log(data);} }
selectedRowBackgroundColor="#f4f7f9"
selectedRowTextSize={20}
titleBackgroundColor="#d93a47"
selectedItemColor="#4caf50"
highlightBackgroundColor="#e91e63"
titleColor="#fff"
tintColor="#e9e31e"
/>
</View>
Property | Description | Type |
---|---|---|
data | an array containing dropdown menu data | Array |
onChange | a callback to be executed once the selected item changes | Function |
selectedRowBackgroundColor | background color for the currently selected row | String(must be a hex value) |
selectedRowTextSize | text size for the currently selected row | Number(by default 16) |
titleBackgroundColor | background color for the title | String(must be a hex value) |
selectedItemColor | selected item color | String(must be a hex value) |
highlightBackgroundColor | background color for the row that has been highlighted | String(must be a hex value) |
titleColor | color of the title | String(must be a hex value) |
tintColor | color of the arrow icon | String(must be a hex value) |
You are interested and want to contribute? Awesome, just consider the following steps:
FAQs
The native dropdown menu for react native
The npm package @ismnoiet/react-native-dropdown receives a total of 2 weekly downloads. As such, @ismnoiet/react-native-dropdown popularity was classified as not popular.
We found that @ismnoiet/react-native-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.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.