mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 13:30:28 +00:00
Merge pull request #28260 from GuillaumeAmat/react-native-snap-carousel-patch-1
Update the react-native-snap-carousel types
This commit is contained in:
+2
-1
@@ -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)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user