From 5dccc6dcddec42c68a1d227428ecfc03743e30d6 Mon Sep 17 00:00:00 2001 From: Guillaume AMAT Date: Mon, 20 Aug 2018 10:53:22 +0200 Subject: [PATCH] Update the react-native-snap-carousel types * Arguments of the `slideInterpolatedStyle` function --- types/react-native-snap-carousel/index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/react-native-snap-carousel/index.d.ts b/types/react-native-snap-carousel/index.d.ts index 3c630bc094..5785717814 100644 --- a/types/react-native-snap-carousel/index.d.ts +++ b/types/react-native-snap-carousel/index.d.ts @@ -1,8 +1,9 @@ -// Type definitions for react-native-snap-carousel 3.6 +// Type definitions for react-native-snap-carousel 3.7 // Project: https://github.com/archriss/react-native-snap-carousel // Definitions by: jnbt // Jacob Froman // Nikolay Polukhin +// Guillaume Amat // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -220,7 +221,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) */