From 9b8a7a23d907bc6d9b59e7eb12e3bf8cd928b785 Mon Sep 17 00:00:00 2001 From: Anas T Date: Tue, 6 Oct 2020 18:35:51 +0300 Subject: [PATCH 1/2] Add Style to ImageBackground itself --- lib/ImagedCarouselCard.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ImagedCarouselCard.js b/lib/ImagedCarouselCard.js index a4f3afa..9bc1002 100644 --- a/lib/ImagedCarouselCard.js +++ b/lib/ImagedCarouselCard.js @@ -12,6 +12,7 @@ import styles, { const ImagedCarouselCard = props => { const { + style, text, source, width, @@ -31,6 +32,7 @@ const ImagedCarouselCard = props => { source={source} borderRadius={borderRadius} style={[ + style, _backgroundStyle(width, height, shadowPaddingBottom), shadowStyle || _shadowStyle(shadowColor) ]} @@ -51,6 +53,7 @@ const ImagedCarouselCard = props => { }; ImagedCarouselCard.propTypes = { + style: PropTypes.object, text: PropTypes.string, shadowColor: PropTypes.string, borderRadius: PropTypes.number, From 6d2fd0f637945dc72a624553aa2eb7e3b0849f82 Mon Sep 17 00:00:00 2001 From: FreakyCoder Date: Tue, 6 Oct 2020 21:54:20 +0300 Subject: [PATCH 2/2] Update ImagedCarouselCard.js --- lib/ImagedCarouselCard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ImagedCarouselCard.js b/lib/ImagedCarouselCard.js index 9bc1002..ccea040 100644 --- a/lib/ImagedCarouselCard.js +++ b/lib/ImagedCarouselCard.js @@ -32,9 +32,9 @@ const ImagedCarouselCard = props => { source={source} borderRadius={borderRadius} style={[ - style, _backgroundStyle(width, height, shadowPaddingBottom), - shadowStyle || _shadowStyle(shadowColor) + shadowStyle || _shadowStyle(shadowColor), + style, ]} >