Skip to content

Commit ae5df95

Browse files
committed
Allow contentContainerCustomStyle override default paddings.
1 parent 85980e5 commit ae5df95

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/carousel/Carousel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,14 +1245,14 @@ export default class Carousel extends Component {
12451245
{ width: sliderWidth, flexDirection: this._needsRTLAdaptations() ? 'row-reverse' : 'row' }
12461246
];
12471247
const contentContainerStyle = [
1248-
contentContainerCustomStyle || {},
12491248
vertical ? {
12501249
paddingTop: this._getContainerInnerMargin(),
12511250
paddingBottom: this._getContainerInnerMargin(true)
12521251
} : {
12531252
paddingLeft: this._getContainerInnerMargin(),
12541253
paddingRight: this._getContainerInnerMargin(true)
1255-
}
1254+
},
1255+
contentContainerCustomStyle || {}
12561256
];
12571257

12581258
const specificProps = !this._needsScrollView() ? {

0 commit comments

Comments
 (0)