# react-native-picker-modal

> A React Native Picker that mimics Android's implementation in iOS without changing the original API

Latest version **1.0.0** (published 2017-12-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-picker-modal
pnpm add react-native-picker-modal
yarn add react-native-picker-modal
bun add react-native-picker-modal
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-12-07 |
| First published | 2017-12-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Gerardo Herz |
| Maintainers | gerherz |

## Links

- npm: https://www.npmjs.com/package/react-native-picker-modal
- Repository: https://github.com/gerherz/react-native-picker-modal
- npm.io page: https://npm.io/package/react-native-picker-modal

## Recent versions

- 1.0.0 (latest) — 2017-12-07

## README

# react-native-picker-modal
A React Native Picker that mimics Android's implementation in iOS without changing the original API. It uses React Native's `Picker` on Android and `Text` that shows the `Picker` inside a `Modal` on iOS.

## Install
```sh
npm i react-native-picker-modal --save
// OR
yarn add react-native-picker-modal
```

## Usage
It receives and passes along the same props and children that the [react-native Picker](https://facebook.github.io/react-native/docs/picker.html) receives.

```jsx
import PickerModal from 'react-native-picker-modal';
import { Picker } from 'react-native';

// ...

<PickerModal
  selectedValue={this.state.language}
  onValueChange={(itemValue, itemIndex) => this.setState({language: itemValue})}>
  <Picker.Item label="Java" value="java" />
  <Picker.Item label="JavaScript" value="js" />
</PickerModal>
```

---
_Source: https://npm.io/package/react-native-picker-modal · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
