mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-02 06:45:02 +08:00
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:
committed by
Facebook Github Bot 5
parent
fab0ff35f1
commit
6d978c3c8b
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user