Skip to content

Commit 095264e

Browse files
committed
Add optional containerProps, mainProps and drawerProps props
1 parent 0bbf531 commit 095264e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ export default class Drawer extends Component {
567567
key="drawerContainer"
568568
onLayout={this.handleSetViewport}
569569
style={this.stylesheet.container}
570+
{...this.props.containerProps}
570571
>
571572
{first}
572573
{second}
@@ -581,6 +582,7 @@ export default class Drawer extends Component {
581582
key="main"
582583
ref={c => this.main = c}
583584
style={[this.stylesheet.main, {height: this.getMainHeight(), width: this.getMainWidth()}]}
585+
{...this.props.mainProps}
584586
>
585587
{this.props.children}
586588
<View
@@ -600,6 +602,7 @@ export default class Drawer extends Component {
600602
ref={c => this.drawer = c}
601603
elevation={this.props.elevation}
602604
style={[this.stylesheet.drawer, {height: this.getDrawerHeight(), width: this.getDrawerWidth()}]}
605+
{...this.props.drawerProps}
603606
>
604607
{this.props.content}
605608
<View

0 commit comments

Comments
 (0)