MCPcopy Index your code
hub / github.com/callstack/react-native-testing-library / isHostImage

Function isHostImage

src/helpers/host-component-names.ts:30–32  ·  view source on GitHub ↗
(instance: TestInstance | null)

Source from the content-addressed store, hash-verified

28 * @param instance The instance to check.
29 */
30export function isHostImage(instance: TestInstance | null) {
31 return typeof instance?.type === 'string' && HOST_IMAGE_NAMES.includes(instance.type);
32}
33
34/**
35 * Checks if the given element is a host Switch element.

Callers 3

isAccessibilityElementFunction · 0.90
computeAriaLabelFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…