Skip to content

Commit 15e965c

Browse files
brentvatneosdnk
authored andcommitted
If inner scrolling is disabled, leave out content wrapper style (#17)
1 parent 471ccfa commit 15e965c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

index.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -437,12 +437,10 @@ export default class BottomSheetBehavior extends Component {
437437
</Animated.View>
438438
</PanGestureHandler>
439439
<View
440-
style={{
440+
style={this.props.enabledInnerScrolling && {
441441
height: this.state.initSnap - this.state.heightOfHeader,
442-
overflow: 'hidden'
443-
}}
444-
>
445-
442+
overflow: 'hidden',
443+
}}>
446444
<PanGestureHandler
447445
enabled={this.props.enabledGestureInteraction}
448446
waitFor={this.master}

0 commit comments

Comments
 (0)