https://github.com/kyle-ssg/react-native-simple-drawer
https://github.com/kyle-ssg/react-native-simple-drawer
drawer menu react-native react-native-simple-drawer
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/kyle-ssg/react-native-simple-drawer
- Owner: kyle-ssg
- Created: 2016-12-18T15:27:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-28T16:50:15.000Z (over 9 years ago)
- Last Synced: 2025-03-20T00:45:08.559Z (over 1 year ago)
- Topics: drawer, menu, react-native, react-native-simple-drawer
- Language: JavaScript
- Size: 5.14 MB
- Stars: 11
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

*** Required Props ***
- menu: The menu component
*** Optional Props (See ./example for usage) ***
- targetOffset: How far from the edge before responding to gestures
- disableGestures: disable swipe to show/hide
- onChange:(isOpen)=>{}
- direction: "left" or "right"
- style: The style of the menu
- width: The width of the menu
- value: Optional ```Animated.Value(0)``` used to link animations inline with menu
*** Functions ***
- ref.close()
- ref.open()
***Minimal Example***
```
import SideMenu = from 'react-native-simple-drawer';
```
```
render() {
const menu = (
react-native-simple-drawer
)
return (
this.refs.menu.open()}>
Toggle Menu
);
}
};
```