Support for Animated.multiply node

Summary:This change adds native animated support for Animated.multiply nodes.

Animated.multiply allows for defining nodes that would output a product of values of the input nodes.

**Test Plan**
Run JS tests: `npm test Libraries/Animated/src/__tests__/AnimatedNative-test.js`
Run java tests: `buck test ReactAndroid/src/test/java/com/facebook/react/animated`
Closes https://github.com/facebook/react-native/pull/7071

Differential Revision: D3197663

fb-gh-sync-id: 35f64244a2482c487a81e5e7cd08f3c0e56d9b78
fbshipit-source-id: 35f64244a2482c487a81e5e7cd08f3c0e56d9b78
This commit is contained in:
Krzysztof Magiera
2016-04-19 13:19:27 -07:00
committed by Facebook Github Bot 0
parent 3e2a3ca466
commit ec5dfbf8c7
5 changed files with 150 additions and 0 deletions

View File

@@ -74,6 +74,8 @@ import javax.annotation.Nullable;
node = new PropsAnimatedNode(config, this);
} else if ("addition".equals(type)) {
node = new AdditionAnimatedNode(config, this);
} else if ("multiplication".equals(type)) {
node = new MultiplicationAnimatedNode(config, this);
} else {
throw new JSApplicationIllegalArgumentException("Unsupported node type: " + type);
}