From 6f6f7a2f2ed0b0ddb18951650c7b8c404a741476 Mon Sep 17 00:00:00 2001 From: Andra Marin Date: Tue, 29 Nov 2016 18:55:26 +0200 Subject: [PATCH] Enable to add style to the container of the menu --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 6f5dca3d..ad2fea4c 100644 --- a/index.js +++ b/index.js @@ -244,7 +244,7 @@ export default class Drawer extends Component { this._panning = false this.shouldOpenDrawer(gestureState.dx) ? this.open() : this.close() }; - + onStartShouldSetPanResponderCapture = (e, gestureState) => { if (this.shouldCaptureGestures()) return this.processShouldSet(e, gestureState) return false @@ -398,7 +398,7 @@ export default class Drawer extends Component { if(typeof type === 'function') { type() // this is actually a callback } else cb && cb() - + } }) }; @@ -550,7 +550,7 @@ export default class Drawer extends Component { key="drawer" ref={c => this.drawer = c} elevation={this.props.elevation} - style={[this.stylesheet.drawer, {height: this.getHeight(), width: this.getDrawerWidth()}]} + style={[this.stylesheet.drawer, this.props.styles.drawer, {height: this.getHeight(), width: this.getDrawerWidth()}]} > {this.props.content}