Skip to content

Commit

Permalink
Allow contentContainerCustomStyle override default paddings.
Browse files Browse the repository at this point in the history
  • Loading branch information
yamov committed Feb 17, 2019
1 parent 85980e5 commit ae5df95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/carousel/Carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -1245,14 +1245,14 @@ export default class Carousel extends Component {
{ width: sliderWidth, flexDirection: this._needsRTLAdaptations() ? 'row-reverse' : 'row' }
];
const contentContainerStyle = [
contentContainerCustomStyle || {},
vertical ? {
paddingTop: this._getContainerInnerMargin(),
paddingBottom: this._getContainerInnerMargin(true)
} : {
paddingLeft: this._getContainerInnerMargin(),
paddingRight: this._getContainerInnerMargin(true)
}
},
contentContainerCustomStyle || {}
];

const specificProps = !this._needsScrollView() ? {
Expand Down

0 comments on commit ae5df95

Please sign in to comment.