Skip to content

izzisolomon/react-native-sliding-drawer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

react-native-sliding-drawer

A drawer component for your react-native application.

To Download, run: yarn add react-native-sliding-drawer, or npm install -s react-native-sliding-drawer.

Sample Usage:

import Drawer from "react-native-sliding-drawer";

openDrawer = () {
  this.setState({ open: true});
}

closeDrawer = () {
  this.setState({ open: false});
}


render () {
  let myLayout = (
    <View>
      // this is what will be displayed inside the drawer
    </View>
)
  return (
      <Drawer
       open={this.state.open}
       layout={myLayout}
       closeOnTapOutside={false}   //Default is true
       left={true}/>               // add this to open the drawer from the left side
  )
}

About

A sliding drawer for react native app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published