diff --git a/types/react-native-snap-carousel/index.d.ts b/types/react-native-snap-carousel/index.d.ts index dca8f53e9f..0679b4ac82 100644 --- a/types/react-native-snap-carousel/index.d.ts +++ b/types/react-native-snap-carousel/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: jnbt // Jacob Froman // Nikolay Polukhin +// Guillaume Amat // Vitor Luiz Cavalcanti // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -229,7 +230,7 @@ export interface CarouselProps extends React.Props { /** * Used to define custom interpolations */ - slideInterpolatedStyle?(animatedValue: number, carouselProps: CarouselProps): StyleProp; + slideInterpolatedStyle?(index: number, animatedValue: Animated.AnimatedValue, carouselProps: CarouselProps): StyleProp; /** * Optional style for each item's container (the one whose scale and opacity are animated) */