Add support for extrapolation

Summary:
Adds support for the `extrapolate` parameter on the native interpolation node. This is pretty much a 1 to 1 port of the JS implementation.

**Test plan**
Tested by adding the `extrapolate` parameter in the native animated UIExplorer example.
Closes https://github.com/facebook/react-native/pull/9366

Differential Revision: D3824154

fbshipit-source-id: 2ef593af827a8bd3d7b8ab2d53abbdc9516c6022
This commit is contained in:
Janic Duplessis
2016-09-06 15:16:16 -07:00
committed by Facebook Github Bot 5
parent fab0ff35f1
commit 6d978c3c8b
5 changed files with 141 additions and 28 deletions

View File

@@ -652,7 +652,11 @@ public class NativeAnimatedNodeTraversalTest {
"inputRange",
JavaOnlyArray.of(10d, 20d),
"outputRange",
JavaOnlyArray.of(0d, 1d)));
JavaOnlyArray.of(0d, 1d),
"extrapolateLeft",
"extend",
"extrapolateRight",
"extend"));
mNativeAnimatedNodesManager.createAnimatedNode(
3,