2.1.0 â€ĸ Published 1 year ago

react-native-pro-picker v2.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

npm

Install 🧰

You can install react-native-pro-picker by running the following command

npm install react-native-pro-picker

Usage 💡

  1. Add the following import statement:
import { ProPicker, ProPickerOption, ProPickerOptionItem } from 'react-native-pro-picker';
  1. Add the component:
<ProPicker onItemSelected={(item) => {
  // Use the selected item.
}}/>
  1. Add the component:
<ProPicker onItemSelected={(item) => {
    <ProPickerOptionItem id={1} value={'js'} label={"Javascript"}/>
    <ProPickerOptionItem id={2} value={'ts'} label={"Typescript"}/>
    <ProPickerOptionItem id={3} value={'kt'} label={"Kotlin"}/>
    <ProPickerOptionItem id={4} value={'sw'} label={"Swift"}/>
}}/>
  1. Customize your picker with the customization options.

Necessary Attributes âš ī¸

AttributeDescriptionType
childrenThe options to select from. Should be of type ProPickerOptionItemProPickerOptionItem | ProPickerOptionItem[]
onItemSelectedCallback for when the user selects an item.() => void

Customizable Attributes đŸ•šī¸

Try it yourself 📱

Download the repo and do:

cd example-app/ 
npm run start

Contributing 🍰

If you want me to improve this package, feel free to reach out to me, and I'll gladly update it.

Maintainers 👷

License âš–ī¸

MIT

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.3.7

3 years ago

1.3.6

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago