UNPKG

@testing-library/react-native

Version:

Simple and complete React Native testing utilities that encourage good testing practices.

8 lines (7 loc) 396 B
import type { ReactTestInstance } from 'react-test-renderer'; export type EventHandlerOptions = { /** Include check for event handler named without adding `on*` prefix. */ loose?: boolean; }; export declare function getEventHandler(element: ReactTestInstance, eventName: string, options?: EventHandlerOptions): any; export declare function getEventHandlerName(eventName: string): string;