skip to Main Content

React native – Using React Reanimated 3, how can I fix "Error: Reading from `_value` directly is only possible on the UI runtime"?

Following along with the react native reanimated docs here I have this code: import Animated, { useSharedValue, useAnimatedStyle } from 'react-native-reanimated'; function WobbleExample(props) { const rotation = useSharedValue(0); const animatedStyle = useAnimatedStyle(() => { return { transform: [{ rotateZ: `${rotation.value}deg`…

VIEW QUESTION
Back To Top
Search