@testing-library/react-native
Version:
Simple and complete React Native testing utilities that encourage good testing practices.
7 lines (6 loc) • 356 B
TypeScript
export type EventHandler = (...args: unknown[]) => unknown;
export type EventHandlerOptions = {
/** Include check for event handler named without adding `on*` prefix. */
loose?: boolean;
};
export declare function getEventHandlerFromProps(props: Record<string, unknown>, eventName: string, options?: EventHandlerOptions): EventHandler | undefined;