UNPKG

@testing-library/react-native

Version:

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

14 lines (13 loc) 470 B
import type { ComponentType } from 'react'; export type RenderHookResult<Result, Props> = { rerender: (props: Props) => void; result: { current: Result; }; unmount: () => void; }; export type RenderHookOptions<Props> = { initialProps?: Props; wrapper?: ComponentType<any>; }; export declare function renderHook<Result, Props>(renderCallback: (props: Props) => Result, options?: RenderHookOptions<Props>): RenderHookResult<Result, Props>;