1.3.7 â€ĸ Published 2 years ago

react-native-pro-picker v1.3.7

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years 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 } from 'react-native-pro-picker';
  1. Add some options:
let options : ProPickerOption[] = [
  {
    id: 1,
    value: "js",
    label: "JavaScript"
  },
  {
    id: 2,
    value: "ts",
    label: "Typescript"
  },
  {
    id: 3,
    value: "kt",
    label: "Kotlin"
  },
];
  1. Add the component:
<ProPicker items={options} onItemSelected={(item) => {
  // Use the selected item.
}}/>
  1. Customize your picker with the customization options.

Necessary Attributes ⚠ī¸

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

Customizable Attributes 🕹ī¸

Try it yourself 📱

Try it on your device, by scanning this QR on the Expo Go app:

Expo QR

(QR not showing? Visit the Expo Project Page)

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

1.3.7

2 years ago

1.3.6

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago