From dfbdbaef439a0c7cb04aeedaac83ef444ba757a3 Mon Sep 17 00:00:00 2001 From: Nedunchezhiyan-M Date: Wed, 8 Apr 2026 23:15:09 +0530 Subject: [PATCH] Fix typo and missing space in AnimatedInterpolation error messages - Fix "Cannot interpolation" to "Cannot interpolate" in input validation - Add missing space before "cannot" in range validation message, which was producing malformed output like "outputRangecannot be..." --- .../Libraries/Animated/nodes/AnimatedInterpolation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/Libraries/Animated/nodes/AnimatedInterpolation.js b/packages/react-native/Libraries/Animated/nodes/AnimatedInterpolation.js index 951657fd59fb..891d4393b340 100644 --- a/packages/react-native/Libraries/Animated/nodes/AnimatedInterpolation.js +++ b/packages/react-native/Libraries/Animated/nodes/AnimatedInterpolation.js @@ -73,7 +73,7 @@ function createNumericInterpolation( return input => { invariant( typeof input === 'number', - 'Cannot interpolation an input which is not a number', + 'Cannot interpolate an input which is not a number', ); const range = findRange(input, inputRange); @@ -345,7 +345,7 @@ function checkInfiniteRange< * etc. If you really mean this implicit string conversion, you can do * something like String(myThing) */ // $FlowFixMe[unsafe-addition] - name + 'cannot be ]-infinity;+infinity[ ' + arr, + name + ' cannot be ]-infinity;+infinity[ ' + arr, ); }