Skip to content

Commit 610e55f

Browse files
author
Benoît Delmaire
authored
Merge pull request #482 from yamov/allow-contentContainerCustomStyle-override-default-paddings
Allow contentContainerCustomStyle override default paddings.
2 parents a04bd7e + ae5df95 commit 610e55f

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
@@ -1270,14 +1270,14 @@ export default class Carousel extends Component {
12701270
{ width: sliderWidth, flexDirection: this._needsRTLAdaptations() ? 'row-reverse' : 'row' }
12711271
];
12721272
const contentContainerStyle = [
1273-
contentContainerCustomStyle || {},
12741273
vertical ? {
12751274
paddingTop: this._getContainerInnerMargin(),
12761275
paddingBottom: this._getContainerInnerMargin(true)
12771276
} : {
12781277
paddingLeft: this._getContainerInnerMargin(),
12791278
paddingRight: this._getContainerInnerMargin(true)
1280-
}
1279+
},
1280+
contentContainerCustomStyle || {}
12811281
];
12821282

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

0 commit comments

Comments
 (0)