Skip to content

Commit dfbdbae

Browse files
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..."
1 parent 8bac1df commit dfbdbae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-native/Libraries/Animated/nodes/AnimatedInterpolation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function createNumericInterpolation(
7373
return input => {
7474
invariant(
7575
typeof input === 'number',
76-
'Cannot interpolation an input which is not a number',
76+
'Cannot interpolate an input which is not a number',
7777
);
7878

7979
const range = findRange(input, inputRange);
@@ -345,7 +345,7 @@ function checkInfiniteRange<
345345
* etc. If you really mean this implicit string conversion, you can do
346346
* something like String(myThing) */
347347
// $FlowFixMe[unsafe-addition]
348-
name + 'cannot be ]-infinity;+infinity[ ' + arr,
348+
name + ' cannot be ]-infinity;+infinity[ ' + arr,
349349
);
350350
}
351351

0 commit comments

Comments
 (0)