react-native-gesture-handler
Version:
Declarative API exposing native platform touch and gesture system to React Native
15 lines (14 loc) • 437 B
TypeScript
import { PressableEvent } from './PressableProps';
interface StateDefinition {
eventName: string;
callback?: (event: PressableEvent) => void;
}
declare class PressableStateMachine {
private states;
private currentStepIndex;
private eventPayload;
constructor(steps: StateDefinition[]);
reset(): void;
handleEvent(eventName: string, eventPayload?: PressableEvent): void;
}
export { PressableStateMachine };