We recently released RNGH 2.0 with new Gestures system. Check out RNGH 2.0 section in Introduction for more information.
A continuous gesture handler that can recognize a rotation gesture and track its movement.
The handler activates when fingers are placed on the screen and change position in a proper way.
Gesture callback can be used for continuous tracking of the rotation gesture. It provides information about the gesture such as the amount rotated, the focal point of the rotation (anchor), and its instantaneous velocity.
The handler is implemented using UIRotationGestureRecognizer on iOS and from scratch on Android.
Properties provided to
RotationGestureHandler do not extend common set of properties from base handler class.
See set of event attributes from base handler class. Below is a list of gesture event attributes specific to
Amount rotated, expressed in radians, from the gesture's focal point (anchor).
Instantaneous velocity, expressed in point units per second, of the gesture.
X coordinate, expressed in points, of the gesture's central focal point (anchor).
Y coordinate, expressed in points, of the gesture's central focal point (anchor).
See the scale and rotation example from Gesture Handler Example App.