Update useSharedValue(0) after API call #1983
Unanswered
Oriole-Alex
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've got a horizontal slider that starts on the left, with useSharedValue(0) and when it reaches the end it updates the status of that slider to 'completed' with an api call updating the users information on our server. So when the user returns to that screen in the future the slider should start on the far right (in it's 'completed' state). I can't find a way to change the position of useSharedValue after the api call has retrieved the users 'completed' status from our server (which is obviously after the slider component has loaded and started using useSharedValue(0)).
any help would be amazing! Sorry if I've missed something obvious in the documentation or not explained the issue I'm having well enough.
many thanks
Alex
Beta Was this translation helpful? Give feedback.
All reactions