mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
[react-native] add Animated.subtract
This commit is contained in:
Vendored
+8
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user