├── .babelrc
├── .eslintignore
├── .eslintrc
├── .flowconfig
├── .gitignore
├── .npmignore
├── LICENSE
├── README.md
├── build.sh
├── build
└── styles.js
├── examples
└── Basic
│ ├── .babelrc
│ ├── .buckconfig
│ ├── .flowconfig
│ ├── .gitattributes
│ ├── .gitignore
│ ├── .watchmanconfig
│ ├── Basic.js
│ ├── Menu.js
│ ├── __tests__
│ ├── index.android.js
│ └── index.ios.js
│ ├── android
│ ├── app
│ │ ├── BUCK
│ │ ├── build.gradle
│ │ ├── proguard-rules.pro
│ │ └── src
│ │ │ └── main
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── java
│ │ │ └── com
│ │ │ │ └── basic
│ │ │ │ ├── MainActivity.java
│ │ │ │ └── MainApplication.java
│ │ │ └── res
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ └── values
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ ├── build.gradle
│ ├── gradle.properties
│ ├── gradle
│ │ └── wrapper
│ │ │ ├── gradle-wrapper.jar
│ │ │ └── gradle-wrapper.properties
│ ├── gradlew
│ ├── gradlew.bat
│ ├── keystores
│ │ ├── BUCK
│ │ └── debug.keystore.properties
│ └── settings.gradle
│ ├── app.json
│ ├── assets
│ └── menu.png
│ ├── index.android.js
│ ├── index.ios.js
│ ├── ios
│ ├── Basic-tvOS
│ │ └── Info.plist
│ ├── Basic-tvOSTests
│ │ └── Info.plist
│ ├── Basic.xcodeproj
│ │ ├── project.pbxproj
│ │ └── xcshareddata
│ │ │ └── xcschemes
│ │ │ ├── Basic-tvOS.xcscheme
│ │ │ └── Basic.xcscheme
│ ├── Basic
│ │ ├── AppDelegate.h
│ │ ├── AppDelegate.m
│ │ ├── Base.lproj
│ │ │ └── LaunchScreen.xib
│ │ ├── Images.xcassets
│ │ │ └── AppIcon.appiconset
│ │ │ │ └── Contents.json
│ │ ├── Info.plist
│ │ └── main.m
│ └── BasicTests
│ │ ├── BasicTests.m
│ │ └── Info.plist
│ ├── package.json
│ └── yarn.lock
├── index.js
├── libdefs.js
├── package.json
├── styles.js
└── yarn.lock
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["react-native"]
3 | }
4 |
--------------------------------------------------------------------------------
/.eslintignore:
--------------------------------------------------------------------------------
1 | libdefs.js
2 |
--------------------------------------------------------------------------------
/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "parser": "babel-eslint",
3 | "extends": "airbnb",
4 | "rules": {
5 | "no-underscore-dangle": "off",
6 |
7 | "import/no-extraneous-dependencies": ["error", {"devDependencies": true, "optionalDependencies": false}],
8 | "import/no-unresolved": 0,
9 |
10 | "react/jsx-filename-extension": [1, { "extensions": [".js"] }],
11 | "react/sort-comp": [1, {
12 | "order": [
13 | "type-annotations",
14 | "static-methods",
15 | "lifecycle",
16 | "everything-else",
17 | "render"
18 | ]
19 | }]
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | .*/node_modules/.*
3 |
4 | [include]
5 |
6 | [libs]
7 | libdefs.js
8 |
9 | [options]
10 |
11 | [lints]
12 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.swp
3 | .DS_Store
4 | **/.DS_Store
5 | .idea
6 | build
7 |
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | examples
2 | node_modules
3 | ./.*
4 | ./index.js
5 | ./styles.js
6 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Alexey
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## Customizable side menu for react-native
2 |
3 | | iOS | android |
4 | | --- | --- |
5 | |
|
|
6 |
7 |
8 | ### Content
9 | - [Installation](#installation)
10 | - [Usage example](#usage-example)
11 | - [Component props](#component-props)
12 | - [Questions?](#questions)
13 |
14 | ### Installation
15 | ```bash
16 | npm install react-native-side-menu --save
17 | ```
18 |
19 | ### Usage example
20 | ```javascript
21 | import SideMenu from 'react-native-side-menu'
22 |
23 | class ContentView extends React.Component {
24 | render() {
25 | return (
26 |
27 |
28 | Welcome to React Native!
29 |
30 |
31 | To get started, edit index.ios.js
32 |
33 |
34 | Press Cmd+R to reload,{'\n'}
35 | Cmd+Control+Z for dev menu
36 |
37 |
38 | );
39 | }
40 | }
41 |
42 | class Application extends React.Component {
43 | render() {
44 | const menu =