1.3.7 âĸ Published 2 years ago
react-native-pro-picker v1.3.7
Install đ§°
You can install react-native-pro-picker by running the following command
npm install react-native-pro-picker
Usage đĄ
- Add the following import statement:
import { ProPicker, ProPickerOption } from 'react-native-pro-picker';
- Add some options:
let options : ProPickerOption[] = [
{
id: 1,
value: "js",
label: "JavaScript"
},
{
id: 2,
value: "ts",
label: "Typescript"
},
{
id: 3,
value: "kt",
label: "Kotlin"
},
];
- Add the component:
<ProPicker items={options} onItemSelected={(item) => {
// Use the selected item.
}}/>
- Customize your picker with the customization options.
Necessary Attributes â ī¸
Attribute | Description | Type |
---|---|---|
items | The options to select from. Should be of type ProPickerOption | ProPickerOption[] |
onItemSelected | Callback 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:
(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