# react-native-dropdown-step

> An easy to use dropdown step component for React Native

Latest version **1.1.4** (published 2022-01-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-dropdown-step
pnpm add react-native-dropdown-step
yarn add react-native-dropdown-step
bun add react-native-dropdown-step
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2022-01-21 |
| First published | 2022-01-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 55.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Krishna Paul |
| Maintainers | krishna.paul |
| Keywords | react, react-native, dropdown, drop-down, step, modal, type-safe, typescript |

## Links

- npm: https://www.npmjs.com/package/react-native-dropdown-step
- Repository: https://github.com/krishnapaul242/react-native-drop-down-modal
- Homepage: https://github.com/krishnapaul242/react-native-drop-down-modal#readme
- Issues: https://github.com/krishnapaul242/react-native-drop-down-modal/issues
- npm.io page: https://npm.io/package/react-native-dropdown-step

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.1.4 (latest) — 2022-01-21
- 1.1.3 — 2022-01-20
- 1.1.2 — 2022-01-20
- 1.1.1 — 2022-01-20
- 1.1.0 — 2022-01-20
- 1.0.0 — 2022-01-20

## README

# React Native DropDownStep
Get started by 
```bash
npm i react-native-dropdown-step
```
or
```bash
yarn add react-native-dropdown-step
```

### Usage
```javascript
import { DropDownStep } from 'react-native-dropdown-step';

interface item {
    // describe your item component data
    // if not using typescript you can just skip the typescript annotations
}

  <DropDownStep<item>
    data={Items} // Required: Array of data, if the types are given, types must match
    getValue={(item) => item.value} // Required: retrieve value from single item
    label={(item) => item.name} // Required: retrieve label from single item
    title="Select Items" // Label above the dropdown or pass nothing to don't show
    onChange={(item) => {
        // when new item is selected
    }}
    renderItem={({onPress, label, selected}) => { // There is a default type
        return <RenderItemThisWay onPress={onPress} label={label} selected={selected} />
    }}
    style={styles.dropdownstep} // style of the container of dropdown modal
    status={CurrentStatusOfData} // four available status: loading, loaded, initial, error 
    defaultValue={SomeDefaultValue} 
  />
```
### Features Coming Next
1. Variants
2. Replacable DropDown Arrow Icon
3. Multiple Selection Support

### Example Screenshots
![Initial Status](https://github.com/krishnapaul242/react-native-drop-down-modal/blob/main/screenshots/image1.png?raw=true)
![When DropDown is Selected](https://github.com/krishnapaul242/react-native-drop-down-modal/blob/main/screenshots/image2.png?raw=true)
![After Selection](https://github.com/krishnapaul242/react-native-drop-down-modal/blob/main/screenshots/image3.png?raw=true)

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