Skip to content

Instantly share code, notes, and snippets.

@rt2zz
Created March 19, 2016 04:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rt2zz/780e624f2bbc6fc01556 to your computer and use it in GitHub Desktop.
Save rt2zz/780e624f2bbc6fc01556 to your computer and use it in GitHub Desktop.
<DrawerIOS
disabled={!!this.props.modalValues.hasModals}
ref="drawer"
type="static"
content={sidebarContent}
onOpen={() => this.setState({isDrawerOpened: true})}
onClose={() => this.setState({isDrawerOpened: false})}
onOpenStart={() => {
this._hideKeyboard();
this._setStatusBarHidden(true);
}}
onCloseStart={() => this._setStatusBarHidden(false)}
openDrawerOffset={0.2}
panOpenMask={0.2} // *addition
captureGestures='open' // *modification
negotiatePan={true} // *modification
tapToClose={true}
styles={styles.ios}
tweenDuration={110}
tweenEasing="easeInOutCirc"
>
{content}
</DrawerIOS>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment