Child also rotating when rotation is applied to parent view #1607
Unanswered
rachna-khatnawlia
asked this question in
Q&A
Replies: 2 comments
-
It should work fine. The inverse rotation will work |
Beta Was this translation helpful? Give feedback.
0 replies
-
just rotate the children to the opposite direction |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When i am applying rotation to parent component(Group), child component(Image) is also rotating with it.
How can i prevent my image from rotation while parent is rotating
i also tried to give inverse rotation to child but it didn't worked for me??
<Group
transform={[{rotate: 1.56}, {translateY: -269}, {translateX: 50}]}
clip={leftstar}>
<Image
image={image}
x={0}
y={0}
width={210}
height={120}
fit="cover"
transform={[{rotate: -1.56}]}
/>
Beta Was this translation helpful? Give feedback.
All reactions