Created
September 6, 2020 13:49
-
-
Save reime005/15c13df8219746df4f49001b3258f442 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
const imageStyle = useAnimatedStyle(() => { | |
// ... | |
// x/y are based on "useSharedValue" | |
// and assigned in PanGestureHandler | |
return { | |
transform: [ | |
{ translateX: x.value }, | |
{ translateY: y.value }, | |
{ rotateZ: `${rotateZ}deg` }, | |
], | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment