title: Rotate View/Image around specific point, not center (React Native)
body: <p>I'm trying to rotate a view around a certain point not the center (just like <code>transform-origin</code> in css) in React Native. At this time elements can only be rotated around the center. The result should be two views/images containing a point laying upon each other at exactly this point, while one of the views is rotated at the desired point. React Native does not support this layout feature yet, so I have to calculate the offsets and then add them using translateX and translateY.</p>
  
  <p>I've tried several approaches e.g. <a href="https://stackoverflow.com/questions/37165715/react-native-transforms-with-pivot-point">this</a> but I'm not getting the desired result. Reacts matrix transform is deprecated, so better not use it. I know that it has to be simple trigonometry stuff but I don't have any idea.</p>
  
  <p>I think at first I need to diff the position of the point from the center of the object, then apply a angle, and then? If I use the offset calculated before applying the rotation, i don't get the rotation at the desired point. </p>
  
  <p>Thanks for answers!</p>
  
  <p><a href="https://i.stack.imgur.com/q0fQR.png" rel="nofollow noreferrer">here is an image of the problem</a></p>