[react-native] add Animated.subtract

This commit is contained in:
Sirui Li
2018-12-24 12:24:27 +00:00
parent f91a63c5e3
commit 01ca498f33
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -8507,6 +8507,14 @@ export namespace Animated {
class AnimatedAddition extends AnimatedInterpolation {}
/**
* Creates a new Animated value composed by subtracting the second Animated
* value from the first Animated value.
*/
export function subtract(a: Animated, b: Animated): AnimatedSubtraction;
class AnimatedSubtraction extends AnimatedInterpolation {}
/**
* Creates a new Animated value composed by dividing the first Animated
* value by the second Animated value.
+1
View File
@@ -53,6 +53,7 @@ function TestAnimatedAPI() {
});
Animated.add(v1, v2);
Animated.subtract(v1, v2);
Animated.divide(v1, v2);
Animated.multiply(v1, v2);
Animated.modulo(v1, 2);