From 91d1850785ad26b2ddb17347218066bf805df5ad Mon Sep 17 00:00:00 2001 From: fmmoret Date: Wed, 27 Sep 2017 19:06:29 -0700 Subject: [PATCH] Fix types on LayoutAnimation .easeInEaseOut, .linear, and .spring have LayoutAnimationConfigs bound already. See https://github.com/facebook/react-native/blob/master/Libraries/LayoutAnimation/LayoutAnimation.js#L164 --- types/react-native/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 9f191d1485..ba4ed92498 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -533,9 +533,9 @@ export interface LayoutAnimationStatic { linear: LayoutAnimationConfig spring: LayoutAnimationConfig } - easeInEaseOut: (config: LayoutAnimationConfig, onAnimationDidEnd?: () => void) => void - linear: (config: LayoutAnimationConfig, onAnimationDidEnd?: () => void) => void - spring: (config: LayoutAnimationConfig, onAnimationDidEnd?: () => void) => void + easeInEaseOut: (onAnimationDidEnd?: () => void) => void + linear: (onAnimationDidEnd?: () => void) => void + spring: (onAnimationDidEnd?: () => void) => void } type FlexAlignType = "flex-start" | "flex-end" | "center" | "stretch" | "baseline";