mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-29 18:06:01 +08:00
Adding divide routine to Animated
This commit is contained in:
11
types/react-native/index.d.ts
vendored
11
types/react-native/index.d.ts
vendored
@@ -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.
|
||||
|
||||
@@ -59,6 +59,7 @@ function TestAnimatedAPI() {
|
||||
});
|
||||
|
||||
Animated.add(v1, v2);
|
||||
Animated.divide(v1, v2);
|
||||
Animated.multiply(v1, v2);
|
||||
Animated.modulo(v1, 2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user