diff --git a/src/Carousel.tsx b/src/Carousel.tsx index 9a8952b..1b8d9b8 100644 --- a/src/Carousel.tsx +++ b/src/Carousel.tsx @@ -18,7 +18,7 @@ export interface CarouselProps { autoplay?: boolean; autoplayTimeout?: number; slipFactor?: number; - animation?: (animate: Animated.Value, toValue: number, useNativeDriver: false,) => Animated.CompositeAnimation; + animation?: (animate: Animated.Value, toValue: number) => Animated.CompositeAnimation; onPageChanged?: (index: number) => void; showsPageIndicator?: boolean; renderPageIndicator?: (config: PageIndicatorConfig) => JSX.Element; @@ -47,7 +47,8 @@ export default class Carousel extends React.Component { this.startPanResponder(); @@ -109,7 +110,7 @@ export default class Carousel extends React.Component