I am attempting to make a rectangle in an svg rotate in place (so around its middle), however this has proven more difficult than I thought. The rectangle instead moves in a weird pattern. This is probably because the rotate origin is wrong however I have not found a way to fix this myself.
I have created an expo for this to demonstrate the problem: https://snack.expo.io/SJqTgyu0N
I would like to keep the style/transition on the rect itself and not move it to the AnimatedG component.