Skip to content

Commit

Permalink
fix: fix styles prop bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dohooo committed May 2, 2022
1 parent 855655e commit 439ac4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ const Carousel = React.forwardRef<ICarouselInstance, TCarouselProps<any>>(
style={[
styles.container,
{ width: width || '100%', height: height || '100%' },
style,
]}
>
<ScrollViewGesture
Expand Down
3 changes: 1 addition & 2 deletions src/ScrollViewGesture.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const IScrollViewGesture: React.FC<Props> = (props) => {
const {
props: {
vertical,
style,
data,
pagingEnabled,
snapEnabled,
Expand Down Expand Up @@ -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}
>
Expand Down

0 comments on commit 439ac4d

Please sign in to comment.