From ae5df95651618a63b8b7ce3a27ad8c8e54667cd6 Mon Sep 17 00:00:00 2001 From: yamov Date: Sun, 17 Feb 2019 18:19:29 +0100 Subject: [PATCH] Allow contentContainerCustomStyle override default paddings. --- src/carousel/Carousel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/carousel/Carousel.js b/src/carousel/Carousel.js index 754b52875..b292204b7 100644 --- a/src/carousel/Carousel.js +++ b/src/carousel/Carousel.js @@ -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() ? {