Add support for DiffClamp node

Summary:
Add native support on iOS and Android for `Animated.diffClamp` that was added in #9419.

**Test plan**
Tested that it works properly using the native animations UIExplorer example.
Closes https://github.com/facebook/react-native/pull/9691

Differential Revision: D3813440

fbshipit-source-id: 48a3ecddf3708fa44b408954d3d8133ec8537f21
This commit is contained in:
Janic Duplessis
2016-09-06 15:30:17 -07:00
committed by Facebook Github Bot 9
parent 6d978c3c8b
commit e26c135746
7 changed files with 153 additions and 0 deletions

View File

@@ -78,6 +78,8 @@ import javax.annotation.Nullable;
node = new AdditionAnimatedNode(config, this);
} else if ("multiplication".equals(type)) {
node = new MultiplicationAnimatedNode(config, this);
} else if ("diffclamp".equals(type)) {
node = new DiffClampAnimatedNode(config, this);
} else if ("transform".equals(type)) {
node = new TransformAnimatedNode(config, this);
} else {