You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So as you can see I have move and end run in JS thread using runOnJs() function.
Does that mean withTiming will also run on JS thread or withTiming always runs on UI thread?
Also as you can see x.value = withTiming(...). Should I wrap this in runOnUI() function? Or to be precise when we set the animation value does it have to be run on UI thread?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So I have this simple animation where if you drag an element it will return back to
(0, 0)
on animation end,So as you can see I have
move
andend
run in JS thread usingrunOnJs()
function.withTiming
will also run on JS thread orwithTiming
always runs on UI thread?x.value = withTiming(...)
. Should I wrap this inrunOnUI()
function? Or to be precise when we set the animation value does it have to be run on UI thread?Beta Was this translation helpful? Give feedback.
All reactions