mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Update the react-native-snap-carousel types
* Arguments of the `slideInterpolatedStyle` function
This commit is contained in:
+3
-2
@@ -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)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user