Question · React Native course · Module 10: Animations
Modifying .value
How do you modify a useSharedValue value?
Answer options
- setValue(newValue)
- sharedValue.value = newValue
- setSharedValue(newValue)
- sharedValue.set(newValue)
You can check the correct answer by solving this task in the CodeWorlds game.