Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions SlidingUpPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ class SlidingUpPanel extends React.PureComponent {
showBackdrop: PropTypes.bool,
backdropOpacity: PropTypes.number,
friction: PropTypes.number,
children: PropTypes.oneOfType([PropTypes.element, PropTypes.func])
containerStyle: PropTypes.any,
children: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
}

static defaultProps = {
Expand Down Expand Up @@ -356,7 +357,7 @@ class SlidingUpPanel extends React.PureComponent {

_renderContent() {
const {top, bottom} = this.props.draggableRange
const {height} = this.props
const {height, containerStyle} = this.props

const translateY = this.props.animatedValue.interpolate({
inputRange: [bottom, top],
Expand All @@ -369,6 +370,7 @@ class SlidingUpPanel extends React.PureComponent {
const animatedContainerStyles = [
styles.animatedContainer,
transform,
containerStyle,
{height, top: visibleHeight}
]

Expand Down