New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-controlled-picker

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-controlled-picker

A 100% controlled and declarative Picker for React Native

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-40%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-controlled-picker

A 100% controlled and declarative Picker for React Native

Installation

yarn add react-native-controlled-picker

or

npm install react-native-controlled-picker --save

Examples

Simplest example

Run this example on Expo

Read the source code

Styled example

Run this example on Expo

Read the source code

Props

PropertyTypeDefaultDescription
openbooleanfalseWhether the items modal is open or not
itemsarray of objects[]Array of objects with label and value keys
valueanynullThe value of the current selected item
placeholderany'Please select...'Text to be displayed when there's no selected item
onPressfunctionFunction to be called when the user clicks on the picker
onChangefunctionFunction to be called when the user selects an item
onClosefunctionFunction to be called when the user request to close the modal
stylefunction{}Additional style for the picker's container view
textStylefunction{}Additional style for the picker's text
placeholderStylefunction{}Additional style for the picker's placeholder
modalStylefunction{}Additional style for the modal's container view
listStylefunction{}Additional style for the list's container view
itemStylefunction{}Additional style for the item's text

Contributing

Please create issues and send pull requests!

License

MIT

FAQs

Package last updated on 01 Jan 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc