# rn-shiva-dropdown

> Beautiful and searchable dropdown component for react native, focused on better user experience

Latest version **1.1.2** (published 2021-04-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install rn-shiva-dropdown
pnpm add rn-shiva-dropdown
yarn add rn-shiva-dropdown
bun add rn-shiva-dropdown
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2021-04-04 |
| First published | 2021-04-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 84.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Murilo Campaner |
| Maintainers | murilo.campaner |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/rn-shiva-dropdown
- Repository: https://github.com/murilo-campaner/rn-shiva-dropdown
- Homepage: https://github.com/murilo-campaner/rn-shiva-dropdown#readme
- Issues: https://github.com/murilo-campaner/rn-shiva-dropdown/issues
- npm.io page: https://npm.io/package/rn-shiva-dropdown

## Dependencies (2)

- [moti](https://npm.io/package/moti.md) 0.7.0
- [react-native-reanimated](https://npm.io/package/react-native-reanimated.md) 2.0.0-rc.0

## 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

- 1.1.2 (latest) — 2021-04-04
- 1.1.1 — 2021-04-04
- 1.1.0 — 2021-04-04

## README

# React Native Shiva Dropdown
Beautiful dropdown component for react native, with search feature and focused on better user experience

## Screenshots
![Default variation](https://media.giphy.com/media/XTiFVDvUbEGKRoBbov/giphy.gif)
![Small variation](https://media.giphy.com/media/9KRGcDsmQ6h9pgb4eZ/giphy.gif)
## Getting Started
### Installation
#### via NPM
```sh
npm install rn-shiva-dropdown
```
#### via Yarn
```sh
yarn add rn-shiva-dropdown
```
### Basic Usage
1. Import the package
2. Create your options array
3. Instantiate the component passing options as prop

```ts
import * as React from 'react';

import { StyleSheet, View, Image } from 'react-native';

import ShivaDropdown from 'rn-shiva-dropdown';

export default function App() {
  return (
    <View style={styles.container}>
      <ShivaDropdown options={dropdownOptions} />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    backgroundColor: '#F1F1F1',
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
  },
  icon: { 
    width: '100%', 
    height: '100%', 
    resizeMode: 'contain' 
  },
});

const dropdownOptions = [
  {
    key: 0,
    label: 'Pizza',
    icon: (
      <Image source={{ uri: "https://pt.seaicons.com/wp-content/uploads/2015/10/Pizza-icon.png" }} style={styles.icon} />
    ),
    value: 'Pizza',
  },
  /* other options... */
];
```
## 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/rn-shiva-dropdown · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
