@testing-library/react-native
Version:
Simple and complete React Native testing utilities that encourage good testing practices.
10 lines (9 loc) • 488 B
TypeScript
import type { TestInstance } from 'test-renderer';
import type { UserEventInstance } from '../setup';
export declare const DEFAULT_MIN_PRESS_DURATION = 130;
export declare const DEFAULT_LONG_PRESS_DELAY_MS = 500;
export interface PressOptions {
duration?: number;
}
export declare function press(this: UserEventInstance, instance: TestInstance): Promise<void>;
export declare function longPress(this: UserEventInstance, instance: TestInstance, options?: PressOptions): Promise<void>;