{"id":3933,"url":"https://github.com/root-two/react-native-drawer","last_synced_at":"2026-01-11T17:02:52.934Z","repository":{"id":30246472,"uuid":"33797700","full_name":"root-two/react-native-drawer","owner":"root-two","description":"React Native Drawer","archived":false,"fork":false,"pushed_at":"2022-04-09T01:31:28.000Z","size":10296,"stargazers_count":2531,"open_issues_count":185,"forks_count":383,"subscribers_count":50,"default_branch":"master","last_synced_at":"2025-12-06T09:57:00.496Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/root-two.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-12T00:34:59.000Z","updated_at":"2025-12-01T10:56:39.000Z","dependencies_parsed_at":"2022-07-19T00:32:15.185Z","dependency_job_id":null,"html_url":"https://github.com/root-two/react-native-drawer","commit_stats":null,"previous_names":["rt2zz/react-native-drawer","rt2zz/rn-drawer"],"tags_count":66,"template":false,"template_full_name":null,"purl":"pkg:github/root-two/react-native-drawer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root-two%2Freact-native-drawer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root-two%2Freact-native-drawer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root-two%2Freact-native-drawer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root-two%2Freact-native-drawer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/root-two","download_url":"https://codeload.github.com/root-two/react-native-drawer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root-two%2Freact-native-drawer/sbom","scorecard":{"id":784610,"data":{"date":"2025-08-11","repo":{"name":"github.com/root-two/react-native-drawer","commit":"0bbf531076b02d027c9ac776eee64fa43545ad8e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":6,"reason":"Found 14/22 approved changesets -- score normalized to 6","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":8,"reason":"binaries present in source code","details":["Warn: binary detected: examples/RNDrawerDemo/android/gradle/wrapper/gradle-wrapper.jar:1","Warn: binary detected: examples/RNDrawerExample/android/gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"112 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-j4mr-9xw3-c9jx","Warn: Project is vulnerable to: GHSA-7p89-p6hx-q4fw","Warn: Project is vulnerable to: GHSA-pp7h-53gx-mx7r","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-832h-xg76-4gv6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-g74r-ffvr-5q9f","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-p28h-cc7q-c4fg","Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-qgfr-5hqp-vrw9","Warn: Project is vulnerable to: GHSA-hr2v-3952-633q","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-3w5v-p54c-f74x","Warn: Project is vulnerable to: GHSA-6x77-rpqf-j6mw","Warn: Project is vulnerable to: GHSA-hwcf-pp87-7x6p","Warn: Project is vulnerable to: GHSA-phwq-j96m-2c2q","Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6","Warn: Project is vulnerable to: GHSA-qrmc-fj45-qfc2","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-9qj9-36jm-prpv","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-q42p-pg8m-cqh6","Warn: Project is vulnerable to: GHSA-w457-6q6x-cgp9","Warn: Project is vulnerable to: GHSA-62gr-4qp9-h98f","Warn: Project is vulnerable to: GHSA-f52g-6jhx-586p","Warn: Project is vulnerable to: GHSA-2cf5-4w76-r9qv","Warn: Project is vulnerable to: GHSA-3cqr-58rm-57f8","Warn: Project is vulnerable to: GHSA-g9r4-xpmj-mj65","Warn: Project is vulnerable to: GHSA-q2c6-c6pm-g3gh","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-44pw-h2cw-w3vq","Warn: Project is vulnerable to: GHSA-jp4x-w63m-7wgm","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-4hpf-3wq7-5rpr","Warn: Project is vulnerable to: GHSA-f522-ffg8-j8r6","Warn: Project is vulnerable to: GHSA-p9w8-2mpq-49h9","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-282f-qqgm-c34q","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-7px7-7xjx-hxm8","Warn: Project is vulnerable to: GHSA-x5pg-88wf-qq4p","Warn: Project is vulnerable to: GHSA-p9wx-2529-fp83","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-f9cm-qmx5-m98h","Warn: Project is vulnerable to: GHSA-7wpw-2hjm-89gp","Warn: Project is vulnerable to: GHSA-qx2f-477c-35rq","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-wrvr-8mpx-r7pp","Warn: Project is vulnerable to: GHSA-hxm2-r34f-qmc5","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-446m-mv8f-q348","Warn: Project is vulnerable to: GHSA-8hfj-j24r-96c4","Warn: Project is vulnerable to: GHSA-gwg9-rgvj-4h5j","Warn: Project is vulnerable to: GHSA-w9mr-4mfr-499f","Warn: Project is vulnerable to: GHSA-7mc5-chhp-fmc3","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-6394-6h9h-cfjg","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-4cpg-3vgw-4877","Warn: Project is vulnerable to: GHSA-gqgv-6jq5-jjj9","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-6g33-f262-xjp4","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-gff7-g5r8-mg8m","Warn: Project is vulnerable to: GHSA-2m39-62fm-q8r3","Warn: Project is vulnerable to: GHSA-mf6x-7mm4-x2g7","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-g7q5-pjjr-gqvp","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-xc7v-wxcw-j472","Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v","Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-v2p6-4mp7-3r9v","Warn: Project is vulnerable to: GHSA-5v72-xg48-5rpm","Warn: Project is vulnerable to: GHSA-h6q6-9hqw-rwfv","Warn: Project is vulnerable to: GHSA-5fg8-2547-mr8q","Warn: Project is vulnerable to: GHSA-crh6-fp67-6883","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T05:45:33.409Z","repository_id":30246472,"created_at":"2025-08-23T05:45:33.409Z","updated_at":"2025-08-23T05:45:33.409Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28314260,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:16:55.743Z","updated_at":"2026-01-11T17:02:52.917Z","avatar_url":"https://github.com/root-two.png","language":"JavaScript","readme":"\n### USAGE WARNING\nThis module is not as performant as it should be. For production applications we generally recommend using either [React Native Side Menu](https://github.com/react-native-community/react-native-side-menu) or [React Navigation](https://github.com/react-navigation/react-navigation) as applicable. React Native Drawer will continue to be available and potentially useful for its high customizability but again it is **not** recommended for production appliciations. If you are interested in revamping react native drawer to be more performant (i.e. use Animated) please get in touch!\n\n\n## React Native Drawer\n\u003cimg width=\"220px\" align=\"right\" src=\"https://raw.githubusercontent.com/rt2zz/react-native-drawer/master/examples/rn-drawer.gif\" /\u003e\n\nReact native drawer, configurable to achieve material design style, slack style, parallax, and more. Works in both iOS and Android.\n\n[![npm version](https://img.shields.io/npm/v/react-native-drawer.svg?style=flat-square)](https://www.npmjs.com/package/react-native-drawer)\n[![npm downloads](https://img.shields.io/npm/dm/react-native-drawer.svg?style=flat-square)](https://www.npmjs.com/package/react-native-drawer)\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Examples](#examples)\n- [Props](#props)\n- [Demo](#demo)\n- [Credits](#credits)\n\n### Installation\n`npm install --save react-native-drawer`\n\n### Usage\n```javascript\nimport Drawer from 'react-native-drawer'\n\nclass Application extends Component {  \n  closeControlPanel = () =\u003e {\n    this._drawer.close()\n  };\n  openControlPanel = () =\u003e {\n    this._drawer.open()\n  };\n  render () {\n    return (\n      \u003cDrawer\n        ref={(ref) =\u003e this._drawer = ref}\n        content={\u003cControlPanel /\u003e}\n        \u003e\n        \u003cMainView /\u003e\n      \u003c/Drawer\u003e\n    )\n  }\n})\n```\n\n### Examples\n```js\n//Parallax Effect (slack style)\n\u003cDrawer\n  type=\"static\"\n  content={\u003cControlPanel /\u003e}\n  openDrawerOffset={100}\n  styles={drawerStyles}\n  tweenHandler={Drawer.tweenPresets.parallax}\n  \u003e\n    \u003cMain /\u003e\n\u003c/Drawer\u003e\n\n//Material Design Style Drawer\n\u003cDrawer\n  type=\"overlay\"\n  content={\u003cControlPanel /\u003e}\n  tapToClose={true}\n  openDrawerOffset={0.2} // 20% gap on the right side of drawer\n  panCloseMask={0.2}\n  closedDrawerOffset={-3}\n  styles={drawerStyles}\n  tweenHandler={(ratio) =\u003e ({\n    main: { opacity:(2-ratio)/2 }\n  })}\n  \u003e\n    \u003cMain /\u003e\n\u003c/Drawer\u003e\n\nconst drawerStyles = {\n  drawer: { shadowColor: '#000000', shadowOpacity: 0.8, shadowRadius: 3},\n  main: {paddingLeft: 3},\n}\n```\n\n### Props\nThis module supports a wide range of drawer styles, and hence has *a lot* of props.\n##### Important\n- `content` (React.Component) `null` - Menu component\n- `type` (String: displace:overlay:static) `displace`- Type of drawer.\n- `open` (Boolean) `null` - If true will trigger drawer open, if false will trigger close.\n- `openDrawerOffset` (Number|Function) `0` - Can either be a integer (pixel value) or decimal (ratio of screen width). Defines the right hand margin when the drawer is open. Or, can be function which returns offset: `(viewport) =\u003e viewport.width - 200`\n- `closedDrawerOffset` (Number|Function) `0` - Same as openDrawerOffset, except defines left hand margin when drawer is closed.\n- `disabled` (Boolean) `false` - If true the drawer can not be opened and will not respond to pans.\n- `styles` (Object) `null` - Styles for the drawer, main, drawerOverlay and mainOverlay container Views.\n\n##### Animation / Tween\n**Note**: In the future animations with use Animated, and the api will change.\n- `tweenHandler` (Function) `null` - Takes in the pan ratio (decimal 0 to 1) that represents the tween percent. Returns an object of native props to be set on the constituent views { drawer: {/*native props*/}, main: {/*native props*/}, mainOverlay: {/*native props*/} }\n- `tweenDuration` (Integer) `250` - The duration of the open/close animation.\n- `tweenEasing` (String) `linear` - A easing type supported by [tween-functions](https://www.npmjs.com/package/tween-functions)\n\n##### Event Handlers\n- `onOpen` (Function) - Will be called immediately after the drawer has entered the open state.\n- `onOpenStart` (Function) callback fired at the start of an open animation.\n- `onClose` (Function) - Will be called immediately after the drawer has entered the closed state.\n- `onCloseStart` (Function) callback fired at the start of a close animation.\n\n##### Gestures\n- `captureGestures` (oneOf(true, false, 'open', 'closed')) `open` - If true, will capture all gestures inside of the pan mask. If 'open' will only capture when drawer is open.\n- `acceptDoubleTap` (Boolean) `false` - Toggle drawer when double tap occurs within pan mask?\n- `acceptTap` (Boolean) `false` - Toggle drawer when any tap occurs within pan mask?\n- `acceptPan` (Boolean) `true` - Allow for drawer pan (on touch drag). Set to false to effectively disable the drawer while still allowing programmatic control.\n- `tapToClose` (Boolean) `false` - Same as acceptTap, except only for close.\n- `negotiatePan` (Boolean) `false` - If true, attempts to handle only horizontal swipes, making it play well with a child `ScrollView`.\n\n##### Additional Configurations\n- `panThreshold` (Number) `.25` - Ratio of screen width that must be travelled to trigger a drawer open/close.\n- `panOpenMask` (Number) `null` - Ratio of screen width that is valid for the start of a pan open action. If null -\u003e defaults to `max(.05, closedDrawerOffset)`.\n- `panCloseMask` (Number) `null` - Ratio of screen width that is valid for the start of a pan close action. If null -\u003e defaults to `max(.05, openDrawerOffset)`.\n- `initializeOpen` (Boolean) `false` - Initialize with drawer open?\n- `side` (String left|right|top|bottom) `left` - which side the drawer should be on.\n- `useInteractionManager` (Boolean) `false` - if true will run InteractionManager for open/close animations.\n- `elevation` (Number) `0` - (Android-only) Sets the elevation of the drawer using Android's underlying [elevation API](https://developer.android.com/training/material/shadows-clipping.html#Elevation)\n\n### Tween Handler\nYou can achieve pretty much any animation you want using the tween handler with the transformMatrix property. E.G.\n```js\ntweenHandler={(ratio) =\u003e {\n  var r0 = -ratio/6\n  var r1 = 1-ratio/6\n  var t = [\n             r1,  r0,  0,  0,\n             -r0, r1,  0,  0,\n             0,   0,   1,  0,\n             0,   0,   0,  1,\n          ]\n  return {\n    main: {\n      style: {\n        transformMatrix: t,\n        opacity: 1 - ratio/2,\n      },\n    }\n  }\n}}\n```\nWill result in a skewed fade out animation.\n\n### Opening \u0026 Closing the Drawer Programmatically\nThree options:\n\n1. Use the open prop (controlled mode):  \n\n    ```js\n    \u003cDrawer\n      open={true}\n    ```\n\n2. Using the Drawer Ref:\n\n    ```js\n    // assuming ref is set up on the drawer as (ref) =\u003e this._drawer = ref\n    onPress={() =\u003e {this._drawer.open()}}\n    ```\n\n3. Using Context\n\n    ```js\n    contextTypes = {drawer: React.PropTypes.object}\n    // later...\n    this.context.drawer.open()\n    ```\n\n### Demo\n* `git clone https://github.com/rt2zz/react-native-drawer.git`\n* `cd react-native-drawer/examples/RNDrawerDemo \u0026\u0026 npm install`\n* **iOS**\n\t* Open `./examples/RNDrawerDemo/RNDrawerDemo.xcodeproject` in xcode\n\t* `command+r` (in xcode)\n* **Android**\n\t* Run android simulator / plug in your android device\n\t* Run `react-native run-android` in terminal\n\n### Credits\nComponent was adapted from and inspired by\n[@khanghoang](https://github.com/khanghoang)'s [RNSideMenu](https://github.com/khanghoang/RNSideMenu)\n*AND*\n[@kureevalexey](https://twitter.com/kureevalexey)'s [react-native-side-menu](https://github.com/Kureev/react-native-side-menu)\n","funding_links":[],"categories":["Components","组件","JavaScript","Libraries","Others"],"sub_categories":["UI","Navigation","Drawer"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froot-two%2Freact-native-drawer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froot-two%2Freact-native-drawer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froot-two%2Freact-native-drawer/lists"}