How to use transform with shared value #1487
-
|
I tried to use transform with shared value but its not working... const scale = useSharedValue(1);
const scaleTransform = useComputedValue(() => [{ scale: scale.value }], [scale]);
return (
<Group transform={scaleTransform}>
//...
</Group>
)
|
Beta Was this translation helpful? Give feedback.
Answered by
wcandillon
Apr 15, 2023
Replies: 1 comment
-
|
if you replace |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
b0iq
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if you replace
useComputedValuewithuseDerivedValuefrom reanimated, it should work great :)