Skip to content

How to use WithSpring on useSharedValue({ x: 0, y: 0}) #2861

Answered by JasonCareter
vbylen asked this question in Q&A
Discussion options

You must be logged in to vote

why don't you separete the offset with offsetx = useSharedValue(1); offsety = useSharedValue(1);
Object Shared Value is mainly used for recording some animation state .

Replies: 1 comment 2 replies

Comment options

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

@Noitidart
Comment options

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