keske / react-native-easy-gestures

React Native Gestures. Support: Drag, Scale and Rotate a Component.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

onEndRotate styles left top values question

idoor88 opened this issue · comments

Hi, I am using the Gestures for rotation and scaling purpose of text and image, I need to get the left and top values of a text after it is rotated with onRotateEnd(event, styles), the left and top values seem not right for me, for instance, when I rotate a text 15 degree counterclockwise around the left end as center rotation point, I want the left and top value of the left side, but the values I got from onRotateEnd or onEnd does not give me the right value for the left side, so where does the values of the Left or Top of the styles in onRotateEnd(event, styles) refers to? how can I calculate the top or left values for the left end of my text rotated?

Thanks
Screen Shot 2019-09-13 at 7 35 48 PM