-
-
Save reime005/cc5ef097b038a60a7e85d9bb4dabf3bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the further we are to the left (-) or right (+), we rotate by up to 10deg | |
// interpolate is from 'react-native-reanimated' | |
const rotateZ = interpolate(x.value, | |
[0, -1 * (screenWidth / 2)], | |
[0, 10]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment