Commit a8b39a2
Fix typo and missing space in AnimatedInterpolation error messages (#56378)
Summary:
Fix two error message issues in `AnimatedInterpolation.js`:
1. **Typo**: "Cannot interpolation an input which is not a number" - should be "Cannot interpolate"
2. **Missing space**: Range validation message was missing a space between the variable name and "cannot", producing malformed output like `outputRangecannot be ]-infinity;+infinity[`
## Changelog:
[GENERAL] [FIXED] - Fix typo "interpolation" to "interpolate" and add missing space in AnimatedInterpolation error messages
Pull Request resolved: #56378
Test Plan:
1. Trigger the interpolation input validation by passing a non-number input to an interpolation config - verify the error message reads "Cannot interpolate an input which is not a number"
2. Trigger the range validation by passing an infinite range - verify the error message has proper spacing between the parameter name and "cannot"
Reviewed By: zeyap
Differential Revision: D100328205
Pulled By: javache
fbshipit-source-id: ae2eba5404dd7b16bf430c26bc161a83821fa9201 parent 64d4d7c commit a8b39a2
File tree
1 file changed
+2
-2
lines changed- packages/react-native/Libraries/Animated/nodes
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
| 348 | + | |
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| |||
0 commit comments