diff --git a/android/src/main/java/com/swmansion/reanimated/nodes/BezierNode.java b/android/src/main/java/com/swmansion/reanimated/nodes/BezierNode.java index bb885b72809..8c2e6c17bea 100644 --- a/android/src/main/java/com/swmansion/reanimated/nodes/BezierNode.java +++ b/android/src/main/java/com/swmansion/reanimated/nodes/BezierNode.java @@ -15,13 +15,7 @@ private static class CubicBezierInterpolator { protected PointF b = new PointF(); protected PointF c = new PointF(); - public CubicBezierInterpolator(PointF start, PointF end) throws IllegalArgumentException { - if (start.x < 0 || start.x > 1) { - throw new IllegalArgumentException("startX value must be in the range [0, 1]"); - } - if (end.x < 0 || end.x > 1) { - throw new IllegalArgumentException("endX value must be in the range [0, 1]"); - } + public CubicBezierInterpolator(PointF start, PointF end) { this.start = start; this.end = end; } diff --git a/src/core/AnimatedBezier.js b/src/core/AnimatedBezier.js index ea64eb0e8e3..4dd89ba5231 100644 --- a/src/core/AnimatedBezier.js +++ b/src/core/AnimatedBezier.js @@ -64,10 +64,6 @@ function newtonRaphsonIterate(aX, aGuessT, mX1, mX2) { } function bezier(mX1, mY1, mX2, mY2) { - if (!(mX1 >= 0 && mX1 <= 1 && mX2 >= 0 && mX2 <= 1)) { - throw new Error('bezier x values must be in [0, 1] range'); - } - // Precompute samples table var sampleValues = float32ArraySupported ? new Float32Array(kSplineTableSize)