diff --git a/src/Carousel.tsx b/src/Carousel.tsx index 956bb24c..fce51a57 100644 --- a/src/Carousel.tsx +++ b/src/Carousel.tsx @@ -199,6 +199,7 @@ const Carousel = React.forwardRef<ICarouselInstance, TCarouselProps<any>>( style={[ styles.container, { width: width || '100%', height: height || '100%' }, + style, ]} > <ScrollViewGesture diff --git a/src/ScrollViewGesture.tsx b/src/ScrollViewGesture.tsx index 46230912..c725c336 100644 --- a/src/ScrollViewGesture.tsx +++ b/src/ScrollViewGesture.tsx @@ -39,7 +39,6 @@ const IScrollViewGesture: React.FC<Props> = (props) => { const { props: { vertical, - style, data, pagingEnabled, snapEnabled, @@ -274,7 +273,7 @@ const IScrollViewGesture: React.FC<Props> = (props) => { return ( <Animated.View - style={[styles.container, directionStyle, style]} + style={[styles.container, directionStyle]} onTouchStart={onTouchBegin} onTouchEnd={onTouchEnd} >