react-native-simple-picker-b

1.4.7 • Public • Published

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

Prop Default Type Description Required
buttonStyle - Object Style Close/Continue Buttons false
modalBackground 'rgba(255, 255, 255, 0.5) String Background color, used to dim behind the modal. false
buttonViewStyle - Object Style Top Header Behind Close/Continue Buttons false
options - Array Options that will be passed to the picker true
initialOptionIndex - Number Initial selected option based on it's index false
labels - Array Labels for the options passed to the picker false
confirmText Confirm String Confirm button text false
cancelText Cancel String Cancel button text false
itemStyle - Object Picker style prop. Use this to customize the picker colors, etc false
disableOverlay - bool When set to false it will dismiss the picker when the outside region is pressed false

Events

Prop Params Description
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).

Package Sidebar

Install

npm i react-native-simple-picker-b

Weekly Downloads

0

Version

1.4.7

License

MIT

Last publish

Collaborators

  • corupta