@testing-library/react-native
Version:
Simple and complete React Native testing utilities that encourage good testing practices.
12 lines (11 loc) • 518 B
TypeScript
import type { ReactTestInstance } from 'react-test-renderer';
import type { HostTestInstance } from './component-tree';
interface FindAllOptions {
/** Match elements hidden from accessibility */
includeHiddenElements?: boolean;
/** RTL-compatible alias to `includeHiddenElements` */
hidden?: boolean;
matchDeepestOnly?: boolean;
}
export declare function findAll(root: ReactTestInstance, predicate: (element: ReactTestInstance) => boolean, options?: FindAllOptions): HostTestInstance[];
export {};