Question · React Native course · Module 10: Animations

runOnJS

When should you use runOnJS in Reanimated?

Answer options

  • Always
  • To call a JS function from the UI thread (e.g., Haptics)
  • For animations
  • For styles

You can check the correct answer by solving this task in the CodeWorlds game.