Skip to content

Commit 701343b

Browse files
committed
Add optional containerProps, mainProps and drawerProps props
1 parent 5afddb3 commit 701343b

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
@@ -566,6 +566,7 @@ export default class Drawer extends Component {
566566
key="drawerContainer"
567567
onLayout={this.handleSetViewport}
568568
style={this.stylesheet.container}
569+
{...this.props.containerProps}
569570
>
570571
{first}
571572
{second}
@@ -580,6 +581,7 @@ export default class Drawer extends Component {
580581
key="main"
581582
ref={c => this.main = c}
582583
style={[this.stylesheet.main, {height: this.getMainHeight(), width: this.getMainWidth()}]}
584+
{...this.props.mainProps}
583585
>
584586
{this.props.children}
585587
<View
@@ -599,6 +601,7 @@ export default class Drawer extends Component {
599601
ref={c => this.drawer = c}
600602
elevation={this.props.elevation}
601603
style={[this.stylesheet.drawer, {height: this.getDrawerHeight(), width: this.getDrawerWidth()}]}
604+
{...this.props.drawerProps}
602605
>
603606
{this.props.content}
604607
<View

0 commit comments

Comments
 (0)