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}