# yipyip-picker

> react native picker

Latest version **0.1.4** (published 2021-10-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install yipyip-picker
pnpm add yipyip-picker
yarn add yipyip-picker
bun add yipyip-picker
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2021-10-26 |
| First published | 2021-06-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 140.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Emrah Yurttutan |
| Maintainers | emrahyurttutan |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/yipyip-picker
- Repository: https://github.com/emrahyurttutan/yipyip-picker
- Homepage: https://github.com/emrahyurttutan/yipyip-picker#readme
- Issues: https://github.com/emrahyurttutan/yipyip-picker/issues
- npm.io page: https://npm.io/package/yipyip-picker

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.4 (latest) — 2021-10-26
- 0.1.3 — 2021-06-28
- 0.1.2 — 2021-06-28
- 0.1.1 — 2021-06-28

## README

# yipyip-picker

react native picker

## Installation

```sh
npm install yipyip-picker
```

## Usage

```js
// ...
import * as React from 'react';

import { StyleSheet, View, Button, Dimensions } from 'react-native';
import { Picker } from 'yipyip-picker';

export default function App() {
  const [gender, setGender] = React.useState<number>(0);

  return (
    <View style={styles.container}>
      <View
        style={{
          width: Dimensions.get('window').width - 40,
        }}
      >
        <Picker
          data={[
            {
              label: 'Erkek',
              value: '1',
            },
            {
              label: 'Kadın',
              value: '2',
            },
            {
              label: 'Diğer',
              value: '3',
            },
          ]}
          placeholder="Gender"
          placeholderTextColor={'#575A61'}
          selectedKey={String(gender)}
          onChangeText={(data: any) => {
            console.log(data, 'onChangeText');
            setGender(data.value);
          }}
        />
        <Button title="Clear" onPress={() => setGender(0)} />
      </View>
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
  },
});

```

## Screen Shot
<p align="center" width="100%">
<img height="800px" src="./screenshot/screenshot1.PNG"/>
<br/>
<img height="800px" src="./screenshot/screenshot2.PNG"/>
</p>

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

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