getPointAtLength() не работает с useAnimatedProps() Reanimated2
Я пытаюсь сделать анимацию движения пути SVG и получаю сообщение об ошибке: Undefined не является объектом (оценка
_getPointAtLength.cx
Любые предложения, что здесь не так?
....
const AnimatedCircle = Animated.createAnimatedComponent(Circle);
const circleAnimation = useAnimatedProps(() => {
const path = parsePath(d);
const { cx, cy } = getPointAtLength(path, length * progress.value);
return {
cx,
cy,
};
});
...