Skip to content

Can't get skia and reanimated to work together #868

Discussion options

You must be logged in to vote

No. I just realised, looking at the snack code, that what I pasted there was not the version that is giving me the issue. I fixed the snack with the correct code but on the snack I don't have the error I get on my local (bare RN) project.

as soon as I try to use the animated values from skia I get the above (screenshot) error.

    ...

const doRotate = useValue(0);
  const doScale = useValue(0);

useSharedValueEffect(() => {
    doRotate.current = mix(progress.value, 0, 90);
    doScale.current = mix(progress.value, 0, 1);
}, progress);

    ...

<Group
    transform={[{ rotate: doRotate }, { scale: doScale }]}
     origin={{ x: 13, y: 13 }}
>

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@FrancoTanzarella
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@wcandillon
Comment options

@FrancoTanzarella
Comment options

Answer selected by FrancoTanzarella
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants