Skip to content

Instantly share code, notes, and snippets.

@reime005
Created Sep 5, 2020
Embed
What would you like to do?
// 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