Skip to content

Instantly share code, notes, and snippets.

@itsramiel
Created June 20, 2022 11:39
Show Gist options
  • Save itsramiel/aa6a07196a10b45a9c598466ab5abfa9 to your computer and use it in GitHub Desktop.
Save itsramiel/aa6a07196a10b45a9c598466ab5abfa9 to your computer and use it in GitHub Desktop.
const style1 = useAnimatedStyle(() => {
const degress = interpolate(progress.value, [0, 1], [0, 50]);
return {
width: VIEW_WIDTH,
height: VIEW_HEIGHT,
backgroundColor: "white",
position: "absolute",
top: FAB_SIZE / 2 - VIEW_HEIGHT / 2,
left: FAB_SIZE / 2 - VIEW_WIDTH / 2,
transform: [{ rotate: `${degress}deg` }],
};
}, []);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment