fix: unrequired props should be optional (#43195)

Some properties of PaginationProps were not optional even thought the package documentation said they were not required.
This commit is contained in:
CRollin 2020-03-18 21:15:09 +01:00 committed by GitHub
parent 0664856f4e
commit 39544038a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,