Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 598 Bytes

README.md

File metadata and controls

28 lines (24 loc) · 598 Bytes

react-native-pan-drawer

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


Demo



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();