Skip to content

Commit

Permalink
fix: content container style for scroll component
Browse files Browse the repository at this point in the history
  • Loading branch information
rgommezz committed May 4, 2020
1 parent 18a2679 commit c80e5c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ export class ScrollBottomSheet<T extends any> extends Component<Props<T>> {
simultaneousHandlers={this.drawerContentRef}
>
<AnimatedScrollableComponent
{...rest}
bounces={false}
// @ts-ignore
ref={this.contentComponentRef}
Expand All @@ -465,7 +466,10 @@ export class ScrollBottomSheet<T extends any> extends Component<Props<T>> {
onScrollBeginDrag={this.onScrollBeginDrag}
onMomentumScrollEnd={this.handleMomentumScrollEnd}
scrollEventThrottle={1}
{...rest}
contentContainerStyle={[
rest.contentContainerStyle,
{ paddingBottom: this.getNormalisedSnapPoints()[0] },
]}
/>
</NativeViewGestureHandler>
</Animated.View>
Expand Down

0 comments on commit c80e5c1

Please sign in to comment.