Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including react-native-simple-picker-fix with all npm packages installed. Try it out:

var reactNativeSimplePickerFix = require("react-native-simple-picker-fix")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

react-native-simple-picker-fix v1.4.7

A simple iOS picker for React Native

React Native Simple Picker

A simple iOS picker for React Native.

Latest Version Total Downloads License

Install

$ npm install react-native-simple-picker --save

Example

You will find an example in the /exampleApp folder.

Properties

PropDefaultTypeDescriptionRequired
buttonStyle-ObjectStyle Close/Continue Buttonsfalse
options-ArrayOptions that will be passed to the pickertrue
initialOptionIndex-NumberInitial selected option based on it's indexfalse
labels-ArrayLabels for the options passed to the pickerfalse
confirmTextConfirmStringConfirm button textfalse
cancelTextCancelStringCancel button textfalse
itemStyle-ObjectPicker style prop. Use this to customize the picker colors, etcfalse
disableOverlay-boolWhen set to false it will dismiss the picker when the outside region is pressedfalse

Events

PropParamsDescription
onSubmit-Use this to trigger any action on your parent component when an option is selected

License

This package is licensed under The MIT License (MIT).

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free