1.4.7 • Published 7 years ago

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

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

React Native Simple Picker

A simple iOS picker for React Native.

Latest Version Total Downloads License

Install

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

Example

You will find an example in the /exampleApp folder.

Properties

PropDefaultTypeDescriptionRequired
buttonStyle-ObjectStyle Close/Continue Buttonsfalse
modalBackground'rgba(255, 255, 255, 0.5)StringBackground color, used to dim behind the modal.false
buttonViewStyle-ObjectStyle Top Header Behind 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).