UNPKG

@testing-library/react-native

Version:

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

33 lines (32 loc) 1.22 kB
import type { TestInstance } from 'test-renderer'; export declare const HOST_TEXT_NAMES: string[]; /** * Checks if the given element is a host Text element. * @param instance The instance to check. */ export declare function isHostText(instance: TestInstance | null): boolean; /** * Checks if the given element is a host TextInput element. * @param instance The instance to check. */ export declare function isHostTextInput(instance: TestInstance | null): boolean; /** * Checks if the given element is a host Image element. * @param instance The instance to check. */ export declare function isHostImage(instance: TestInstance | null): boolean; /** * Checks if the given element is a host Switch element. * @param instance The instance to check. */ export declare function isHostSwitch(instance: TestInstance | null): boolean; /** * Checks if the given element is a host ScrollView element. * @param instance The instance to check. */ export declare function isHostScrollView(instance: TestInstance | null): boolean; /** * Checks if the given element is a host Modal element. * @param instance The instance to check. */ export declare function isHostModal(instance: TestInstance | null): boolean;