Skip to content

Commit

Permalink
Merge pull request #93 from akmjenkins/patch-1
Browse files Browse the repository at this point in the history
Allow style prop to style the base component.
  • Loading branch information
calintamas authored Nov 29, 2020
2 parents b7a11dc + 934f6e1 commit 8e2daee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ class Toast extends Component {
return (
<Animated.View
onLayout={this.onLayout}
style={baseStyle}
style={[...baseStyle,this.props.style || {}]}
{...this.panResponder.panHandlers}>
{this.renderContent(this.props)}
</Animated.View>
Expand Down

0 comments on commit 8e2daee

Please sign in to comment.