Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
How can you deal with the situation when you need to call a function while on the UI thread?
mark the function with a "worklet"; directive
pass the function as an argument to runOnUI function
we can call any function while on the UI thread without any additional actions
we cannot call any functions while on the UI thread, and nothing can be done about it
pass the function as an argument to runOnJS function
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!