I'm learning reanimated because it works on the UI thread and I want to achieve a rotation animation. Rotating in degrees (like 45deg) is not working and prompts an error. So how can we achieve rotation animation in react-native-reanimation v1(version 1)?
Probably you need concat
function from reanimated library:
import Animated, { concat } from 'react-native-reanimated';
...
return (
<Animated.View style={{
transform: [{rotateZ: concat(yourAnimatedValue, 'deg')}],
}}/>
);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With