You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using rotate property instead of rotateZ works with interpolated values as expected.
�Closing this issue. For someone wanting to animate rotation in the plane of the screen, I suggest you to use rotate instead of rotateZ. I found no reference of this property in the official docs
🐛 Bug Report
Passing animated value interpolation to rotateZ transform property of an Animated view causes this error.
However, rotateX, rotateY seems to work fine. Also, passing a static string value to rotateZ also works as expected.
Expected Behavior
It should transform the same way it does in X-axis and Y-axis rotations.
Code Example
<Animated.View style={[ styles.container, { transform: [ { rotateZ: this._translateX.interpolate({ inputRange: [0, 1], outputRange: ['0.0rad', '1.0rad'] }) } ] } ]} >
Environment
Environment info:
Device: Android 8.0.0
RN version: 0.57.1
OS: macOS 10.13.6
Expo version: 32.0.0
The text was updated successfully, but these errors were encountered: