Merge pull request #28260 from GuillaumeAmat/react-native-snap-carousel-patch-1

Update the react-native-snap-carousel types
This commit is contained in:
Armando Aguirre
2018-08-31 16:36:43 -07:00
committed by GitHub
+2 -1
View File
@@ -3,6 +3,7 @@
// 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>
// Vitor Luiz Cavalcanti <https://github.com/VitorLuizC>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
@@ -229,7 +230,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)
*/