1.0.1 • Published 7 years ago

react-native-pan-drawer v1.0.1

Weekly downloads
2
License
MIT
Repository
-
Last release
7 years ago

react-native-pan-drawer

A cross-platform (iOS&Android), drawer component for React Native.

Demo

npm.io

Install

npm install react-native-pan-drawer --save

Usage

import Drawer from 'react-native-pan-drawer'

<Drawer
    backgroundView = {() => <BackgroundView />}
    leftView = {() => <LeftView />}
    rightView = {() => <RightView />}
    ref = {ref => this.drawer = ref}
/>

this.drawer.open();
this.drawer.close();
this.drawer.toggle();