# react-native-search-modal

> A simple React Native modal that allows you to search from given list

Latest version **1.0.1** (published 2017-07-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-native-search-modal
pnpm add react-native-search-modal
yarn add react-native-search-modal
bun add react-native-search-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.1 |
| Published | 2017-07-18 |
| First published | 2017-07-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Febrianto Arif Rakhman |
| Maintainers | febfeb |
| Keywords | react-native, search, modal |

## Links

- npm: https://www.npmjs.com/package/react-native-search-modal
- Repository: https://github.com/febfeb/react-native-search-modal
- Homepage: https://github.com/febfeb/react-native-search-modal#readme
- Issues: https://github.com/febfeb/react-native-search-modal/issues
- npm.io page: https://npm.io/package/react-native-search-modal

## Alternatives

- [react-native-root-siblings](https://npm.io/package/react-native-root-siblings.md) — 102.9K weekly downloads
- [post-robot](https://npm.io/package/post-robot.md) — 93.7K weekly downloads
- [@praxisui/dialog](https://npm.io/package/@praxisui/dialog.md) — 2.0K weekly downloads
- [easy-toggle-state](https://npm.io/package/easy-toggle-state.md) — 350 weekly downloads
- [ngx-lightbox-evp](https://npm.io/package/ngx-lightbox-evp.md) — 19 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-07-18
- 1.0.0 — 2017-07-18

## README

# React Native Search Modal
A simple React Native modal that allows you to search from given list

# Usage
```javascript
import SearchModal from 'react-native-search-modal';
```

```javascript
render() {
    const data = [
        { key : 'ATL', text : 'Hartsfield Jackson Atlanta International' },
        { key : 'PEK', text : 'Beijing Capital International' },
        { key : 'DXB', text : 'Dubai International' },
        { key : 'ORD', text : 'Chicago O’Hare International' },
        { key : 'HND', text : 'Tokyo International' },
        { key : 'LHR', text : 'London Heathrow' },
        { key : 'LAX', text : 'Los Angeles International' },
        { key : 'HKG', text : 'Hong Kong International' },
        { key : 'CDG', text : 'Charles de Gaulle International' },
        { key : 'DFW', text : 'Dallas Fort Worth International' },
        { key : 'IST', text : 'Atatürk International' },
        { key : 'FRA', text : 'Frankfurt am Main International' },
        { key : 'PVG', text : 'Shanghai Pudong International' },
        { key : 'AMS', text : 'Amsterdam Schiphol' },
        { key : 'JFK', text : 'John F Kennedy International' },
        { key : 'SIN', text : 'Singapore Changi International' },
        { key : 'CAN', text : 'Guangzhou Baiyun International' },
        { key : 'CGK', text : 'Soekarno-Hatta International' },
    ];
    return (
        <View style={{paddingTop: 100}}>
            <SearchModal
                label="Your Destination"
                data={data}
                value="CGK"
                onSelect={(result)=>{ console.log(result)) }}
            />
        </View>
    );
}
```

# Demo
![alt text](https://github.com/febfeb/react-native-search-modal/raw/master/demo.gif "Demo")

# Install
```
npm install --save react-native-search-modal
```

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