From 11e17b9ce64b7365238e48de9c878605f97c4d88 Mon Sep 17 00:00:00 2001 From: Moti Zilberman Date: Mon, 5 Feb 2018 14:52:36 +0000 Subject: [PATCH] Support non-integer modulus in ModulusAnimatedNode on Android --- .../java/com/facebook/react/animated/ModulusAnimatedNode.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/ModulusAnimatedNode.java b/ReactAndroid/src/main/java/com/facebook/react/animated/ModulusAnimatedNode.java index 11fa7fc274c308..2bce6b806362bb 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/ModulusAnimatedNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/ModulusAnimatedNode.java @@ -17,14 +17,14 @@ private final NativeAnimatedNodesManager mNativeAnimatedNodesManager; private final int mInputNode; - private final int mModulus; + private final double mModulus; public ModulusAnimatedNode( ReadableMap config, NativeAnimatedNodesManager nativeAnimatedNodesManager) { mNativeAnimatedNodesManager = nativeAnimatedNodesManager; mInputNode = config.getInt("input"); - mModulus = config.getInt("modulus"); + mModulus = config.getDouble("modulus"); } @Override