From 02b62e98b02a27ea6431fa763f5c44fa0441198b Mon Sep 17 00:00:00 2001 From: Jonas Thiel Date: Wed, 10 May 2017 11:03:27 +0200 Subject: [PATCH] Update react-native-snap-carousel to v2.1.2 A new property `carouselHorizontalPadding ` was introduced in version 2.1.2. https://github.com/archriss/react-native-snap-carousel/blob/master/CHANGELOG.md#v212 --- types/react-native-snap-carousel/index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/react-native-snap-carousel/index.d.ts b/types/react-native-snap-carousel/index.d.ts index ff77486831..7a80378514 100644 --- a/types/react-native-snap-carousel/index.d.ts +++ b/types/react-native-snap-carousel/index.d.ts @@ -82,6 +82,11 @@ export interface CarouselProps extends React.Props { * Animation options to be merged with the default ones. Can be used w/ animationFunc */ animationOptions?: Animated.DecayAnimationConfig | Animated.TimingAnimationConfig | Animated.SpringAnimationConfig; + /** + * Override container's inner padding (needed for slides's centering). + * Warning: be aware that overriding the default value can mess with carousel's behavior. + */ + carouselHorizontalPadding?: number; /** * Optional styles for Scrollview's global wrapper */