react-native-gesture-handler
Version:
Declarative API exposing native platform touch and gesture system to React Native
13 lines (12 loc) • 657 B
TypeScript
import { ContinousBaseGesture } from './gesture';
import type { RotationGestureHandlerEventPayload } from '../GestureHandlerEventPayload';
import { GestureUpdateEvent } from '../gestureHandlerCommon';
type RotationGestureChangeEventPayload = {
rotationChange: number;
};
export declare class RotationGesture extends ContinousBaseGesture<RotationGestureHandlerEventPayload, RotationGestureChangeEventPayload> {
constructor();
onChange(callback: (event: GestureUpdateEvent<RotationGestureHandlerEventPayload & RotationGestureChangeEventPayload>) => void): this;
}
export type RotationGestureType = InstanceType<typeof RotationGesture>;
export {};