# react-native-draggable-drawer

> DraggableDrawer component for React Native.

Latest version **0.0.8** (published 2015-08-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-draggable-drawer
pnpm add react-native-draggable-drawer
yarn add react-native-draggable-drawer
bun add react-native-draggable-drawer
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2015-08-25 |
| First published | 2015-08-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 57 |
| Author | Gabriel Gutierrez |
| Maintainers | llanox |
| Keywords | react-component, react-native, vertical draggable drawer, ios |

## Links

- npm: https://www.npmjs.com/package/react-native-draggable-drawer
- Repository: https://github.com/llanox/react-native-draggable-drawer
- Homepage: https://github.com/llanox/react-native-draggable-drawer#readme
- Issues: https://github.com/llanox/react-native-draggable-drawer/issues
- npm.io page: https://npm.io/package/react-native-draggable-drawer

## Dependencies (2)

- [rebound](https://npm.io/package/rebound.md) 0.0.13
- [react-native](https://npm.io/package/react-native.md) ^0.8.0

## Recent versions

- 0.0.8 (latest) — 2015-08-25
- 0.0.3 (beta) — 2015-08-20
- 0.0.7 — 2015-08-25
- 0.0.6 — 2015-08-24
- 0.0.5 — 2015-08-21
- 0.0.4 — 2015-08-20
- 0.0.2 — 2015-08-20

## README

#react-native-draggable-drawer

DraggableDrawer is a component for react-native, it allows you have a vertical draggable drawer view that you can drag up or drag down. So, if you drag and release that component, then it keeps moving until reach  either initial position or container border.  

## Example
### [draggable-drawer-image-bouncing](https://github.com/llanox/react-native-draggable-drawer/blob/master/DemoScreen.js)

![react-native-draggable-drawer](http://i.imgur.com/AequjyD.gif)

### Installation

```bash
$ npm i react-native-draggable-drawer --save
```

### Properties

#### Basic

| Prop  | Default  | Type | Description |
| :------------ |:---------------:| :---------------:| :-----|
| onDragDown | undefined | `function` | If you pass a function as parameter it will be notified when the user drag down the drawer  |
| onRelease | undefined | `function` | If you pass a function as parameter it will be notified when the user release the drawer after drag it |
| initialDrawerSize | 0.0 | `number` | It's the initial position or size for Drawer component. If  drawer size is 1 that means its using 100% of avalaible space on the screen |
| renderContainerView | undefined | `View` | Pass as parameter a renderable react component to show as container. |
| renderDrawerView | undefined | `View` | Pass as parameter a renderable react component to show as drawer. |

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