Merge pull request #18229 from anthonyhiga/adding-divide

[react-native] Adding divide routine to Animated
This commit is contained in:
Wesley Wigham
2017-07-19 15:48:01 -07:00
committed by GitHub
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);