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
This commit is contained in:
Jonas Thiel
2017-05-10 11:03:27 +02:00
parent 8868f90acf
commit 02b62e98b0

View File

@@ -82,6 +82,11 @@ export interface CarouselProps extends React.Props<ScrollViewProperties> {
* 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
*/