From 79325cc16763dc38fddc26bef4b23dc94c86a717 Mon Sep 17 00:00:00 2001 From: Yu Date: Fri, 3 Nov 2017 16:58:44 +0800 Subject: [PATCH 1/2] [react-native]fix raw event arg ignored error --- types/react-native/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 58af56a5ac..63848bcd8c 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -7981,7 +7981,7 @@ export namespace Animated { config?: ParallelConfig ): CompositeAnimation; - type Mapping = { [key: string]: Mapping } | AnimatedValue; + type Mapping = { [key: string]: Mapping } | AnimatedValue | null; interface EventConfig { listener?: ValueListenerCallback; useNativeDriver?: boolean; From 7d214ff13387284f7bbe88c7b37e3d025e5b7e87 Mon Sep 17 00:00:00 2001 From: Yu Date: Mon, 13 Nov 2017 22:35:09 -0600 Subject: [PATCH 2/2] change to argMapping --- types/react-native/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 63848bcd8c..6bc3d87208 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -7981,7 +7981,7 @@ export namespace Animated { config?: ParallelConfig ): CompositeAnimation; - type Mapping = { [key: string]: Mapping } | AnimatedValue | null; + type Mapping = { [key: string]: Mapping } | AnimatedValue; interface EventConfig { listener?: ValueListenerCallback; useNativeDriver?: boolean; @@ -8004,7 +8004,7 @@ export namespace Animated { *``` */ export function event( - argMapping: Mapping[], + argMapping: Array, config?: EventConfig ): (...args: any[]) => void;