react-native-skia: 0.1.125: Value is undefined, expected a String
After upgrading to the latest version, we started getting this error everywhere we use a string as the animation value type. It is happening when we use the useValue
and useDerivedValue
hooks, and may not be limited to these hooks only. Seems to be related to #488 but I am not sure.
Repro
const color = useValue(0); // <-- no crash
const color = useValue('green'); // <-- crash with string as argument
const zoneText = useDerivedValue(
() => `${getZoneText(percentage)}`, // <-- crashes because it returns a string
[percentage], // no crash if returning a number
);
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 22
Why canโt I use the two libraries simultaneously? And why is this issue closed? Iโm still facing it ๐
Thanks for reporting this and also catching exactly where the regression was introduced ๐๐ผ or apologies for that mistake, we will publish a fix for it tomorrow.