Adding divide routine to Animated

This commit is contained in:
Anthony Higa
2017-07-19 13:48:18 -07:00
parent bc64561d76
commit 316c573bf4
2 changed files with 12 additions and 0 deletions

View File

@@ -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.

View File

@@ -59,6 +59,7 @@ function TestAnimatedAPI() {
});
Animated.add(v1, v2);
Animated.divide(v1, v2);
Animated.multiply(v1, v2);
Animated.modulo(v1, 2);