From 3adb8e3d44d307b6eb14d917c4a4d799460e2750 Mon Sep 17 00:00:00 2001 From: hmadhsan <20043390+hmadhsan@users.noreply.github.com> Date: Tue, 21 Jul 2026 23:33:08 +0200 Subject: [PATCH] fix(typings): fix AnimatableComponent ref type and animate method return signature (#407, #328) Signed-off-by: hmadhsan <20043390+hmadhsan@users.noreply.github.com> --- typings/react-native-animatable.d.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/typings/react-native-animatable.d.ts b/typings/react-native-animatable.d.ts index af76e97..4363f9f 100644 --- a/typings/react-native-animatable.d.ts +++ b/typings/react-native-animatable.d.ts @@ -158,8 +158,7 @@ type AnimatableAnimationMethods = Partial<{ interface AnimatableComponent

extends NativeMethods, AnimatableAnimationMethods, - Component, - ClassicComponentClass & P> { + Component & P, S> { refs: { [key: string]: Component; }; @@ -170,7 +169,7 @@ interface AnimatableComponent

animation: Animation | CustomAnimation, duration?: number, iterationDelay?: number, - ): Promise; + ): Promise<{ finished: boolean }>; transition( fromValues: T,