Додати до Chrome
✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
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
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!