Closed pdpino closed 1 year ago
Hi @pdpino , could you explain why setting it run on js can solve the issue?
@hoangnm it fixes the issue in RNGH, as I reported in this bug in their repo.
Setting gesture.runOnJS(true)
makes the animations run in the JS context instead of the UI thread. In other words, the callback provided inside onEnd(() => {...})
is run in the JS context instead of the UI thread. Apparently, the bug only occurs when running certain code on the UI thread.
In theory, animations are smoother when run in the UI thread. But still they can be run in JS and works fine. (Read more details in rn-reanimated worklets docs)
thanks, it makes sense, let's merge this to see if it works for other users.
wait, I can create the alpha version first.
@hoangnm do you have an ETA on merging this? This issue has been waiting for long :sweat_smile:
ok, merging.
Hot fixes #259