Update the react-native-snap-carousel types

* Arguments of the `slideInterpolatedStyle` function
This commit is contained in:
Guillaume AMAT
2018-08-20 11:20:15 +02:00
parent ee84ef5f4f
commit 5dccc6dcdd
+3 -2
View File
@@ -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 <https://github.com/jnbt>
// Jacob Froman <https://github.com/j-fro>
// Nikolay Polukhin <https://github.com/gazaret>
// Guillaume Amat <https://github.com/GuillaumeAmat>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
@@ -220,7 +221,7 @@ export interface CarouselProps<T> extends React.Props<ScrollViewProps> {
/**
* Used to define custom interpolations
*/
slideInterpolatedStyle?(animatedValue: number, carouselProps: CarouselProps<any>): StyleProp<ViewStyle>;
slideInterpolatedStyle?(index: number, animatedValue: Animated.AnimatedValue, carouselProps: CarouselProps<any>): StyleProp<ViewStyle>;
/**
* Optional style for each item's container (the one whose scale and opacity are animated)
*/