UNPKG

@testing-library/react-native

Version:

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

16 lines (15 loc) 698 B
import { ReactTestInstance } from 'react-test-renderer'; import { HostComponentNames } from '../config'; import { HostTestInstance } from './component-tree'; export declare function getHostComponentNames(): HostComponentNames; export declare function configureHostComponentNamesIfNeeded(): void; /** * Checks if the given element is a host Text. * @param element The element to check. */ export declare function isHostText(element?: ReactTestInstance | null): element is HostTestInstance; /** * Checks if the given element is a host TextInput. * @param element The element to check. */ export declare function isHostTextInput(element?: ReactTestInstance | null): element is HostTestInstance;