diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/FrameBasedAnimationDriver.java b/ReactAndroid/src/main/java/com/facebook/react/animated/FrameBasedAnimationDriver.java index f8fca1f9d22921..3029ef8fc1cfd8 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/FrameBasedAnimationDriver.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/FrameBasedAnimationDriver.java @@ -41,7 +41,7 @@ public void resetConfig(ReadableMap config) { for (int i = 0; i < numberOfFrames; i++) { mFrames[i] = frames.getDouble(i); } - mToValue = config.getDouble("toValue"); + mToValue = config.hasKey("toValue") ? config.getDouble("toValue") : 0; mIterations = config.hasKey("iterations") ? config.getInt("iterations") : 1; mCurrentLoop = 1; mHasFinished = mIterations == 0;