diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 448d29a069..e8e9eca55c 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -7962,6 +7962,17 @@ export namespace Animated { class AnimatedAddition extends AnimatedInterpolation { } + /** + * Creates a new Animated value composed by dividing the first Animated + * value by the second Animated value. + */ + export function divide( + a: Animated, + b: Animated + ): AnimatedDivision; + + class AnimatedDivision extends AnimatedInterpolation { } + /** * Creates a new Animated value composed from two Animated values multiplied * together. diff --git a/types/react-native/test/animated.tsx b/types/react-native/test/animated.tsx index 8efd5fd171..b63a95cc85 100644 --- a/types/react-native/test/animated.tsx +++ b/types/react-native/test/animated.tsx @@ -59,6 +59,7 @@ function TestAnimatedAPI() { }); Animated.add(v1, v2); + Animated.divide(v1, v2); Animated.multiply(v1, v2); Animated.modulo(v1, 2);