Skip to content

Commit

Permalink
fix: duplicate style
Browse files Browse the repository at this point in the history
fix #169
  • Loading branch information
dohooo committed May 1, 2022
1 parent 99f44bc commit 7e7e00f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ const Carousel = React.forwardRef<ICarouselInstance, TCarouselProps<any>>(
style={[
styles.container,
{ width: width || '100%', height: height || '100%' },
style,
]}
>
<ScrollViewGesture
Expand Down
4 changes: 0 additions & 4 deletions src/hooks/useCommonVariables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ export function useCommonVariables(
const handlerOffsetX = useSharedValue<number>(defaultHandlerOffsetX);

React.useEffect(() => {
/**
* TODO @dohooo @gxxgcn
* #163 add deps with rawData.
**/
handlerOffsetX.value = defaultHandlerOffsetX;
}, [vertical, handlerOffsetX, defaultHandlerOffsetX, rawData]);

Expand Down

0 comments on commit 7e7e00f

Please sign in to comment.