From 095264e26e3a2a7885632ddb6718db8633f4134a Mon Sep 17 00:00:00 2001 From: Suhair Zain Date: Wed, 18 Apr 2018 10:43:47 +0530 Subject: [PATCH] Add optional containerProps, mainProps and drawerProps props --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index ad60eccd..15b159b6 100644 --- a/index.js +++ b/index.js @@ -567,6 +567,7 @@ export default class Drawer extends Component { key="drawerContainer" onLayout={this.handleSetViewport} style={this.stylesheet.container} + {...this.props.containerProps} > {first} {second} @@ -581,6 +582,7 @@ export default class Drawer extends Component { key="main" ref={c => this.main = c} style={[this.stylesheet.main, {height: this.getMainHeight(), width: this.getMainWidth()}]} + {...this.props.mainProps} > {this.props.children} this.drawer = c} elevation={this.props.elevation} style={[this.stylesheet.drawer, {height: this.getDrawerHeight(), width: this.getDrawerWidth()}]} + {...this.props.drawerProps} > {this.props.content}