Skip to content

Commit cb1bdf1

Browse files
osdnkfacebook-github-bot
authored andcommitted
Change error message on interpolation (#19571)
Summary: Change message in Animated.Interpolation to "inputRange must be monotonically non-decreasing" as it's allowed to give the same x's like in the test [example](https://github.com/facebook/react-native/blob/4435f087713e1d0ac3639e3b3196d71c6402898e/Libraries/Animated/src/__tests__/Interpolation-test.js#L71) Simply giving improper value of interpolation input [GENERAL] [MINOR] [AnimatedInterpolation.js] - Change error message on interpolation improper range error Closes #19571 Differential Revision: D8310791 Pulled By: TheSavior fbshipit-source-id: 803ef55104ad2a36231c5f18c0c089bd14822bf3
1 parent 29fb2a8 commit cb1bdf1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Libraries/Animated/src/nodes/AnimatedInterpolation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ function checkValidInputRange(arr: Array<number>) {
285285
* mean this implicit string conversion, you can do something like
286286
* String(myThing)
287287
*/
288-
'inputRange must be monotonically increasing ' + arr,
288+
'inputRange must be monotonically non-decreasing ' + arr,
289289
);
290290
}
291291
}

0 commit comments

Comments
 (0)