0.4.1 • Published 11 months ago

@wavedph/react-native-picker-with-modal v0.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

react-native-picker-with-modal

simple picker with modal

Installation

yarn add @wavedph/react-native-picker-with-modal

Usage

import { Picker } from '@wavedph/react-native-picker-with-modal';

// ...

const [selected, setSelected] = React.useState < string | number > '');
// ...
<Picker
  data={[
    { value: 1, label: 'test1' },
    { value: 2, label: 'test2' },
    { value: 3, label: 'test3' },
  ]}
  selectedValue={selected}
  onValueChange={(value) => {
    setSelected(value);
  }}
/>;

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library