From 39544038a8efd7d31380ad08c5647bb0e7cd16c0 Mon Sep 17 00:00:00 2001 From: CRollin Date: Wed, 18 Mar 2020 21:15:09 +0100 Subject: [PATCH] fix: unrequired props should be optional (#43195) Some properties of PaginationProps were not optional even thought the package documentation said they were not required. --- types/react-native-snap-carousel/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/react-native-snap-carousel/index.d.ts b/types/react-native-snap-carousel/index.d.ts index e83fc45cb6..6867b592b9 100644 --- a/types/react-native-snap-carousel/index.d.ts +++ b/types/react-native-snap-carousel/index.d.ts @@ -340,15 +340,15 @@ export interface PaginationProps { /** * Length of dot animation (milliseconds) */ - animatedDuration: number; + animatedDuration?: number; /** * Controls "bounciness"/overshoot on dot animation */ - animatedFriction: number; + animatedFriction?: number; /** * Controls speed dot animation */ - animatedTension: number; + animatedTension?: number; /** * Number of dots to display */ @@ -373,7 +373,7 @@ export interface PaginationProps { /** * Delay in ms, from the start of the touch, before onPressIn is called on dot */ - delayPressInDot: number; + delayPressInDot?: number; /** * Background color of the active dot. * Use this if you want to animate the change between active and inactive colors,