/react-native-pan-drawer

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

Primary LanguageJavaScriptMIT LicenseMIT

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