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

Function isHostText

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

Source from the content-addressed store, hash-verified

12 * @param instance The instance to check.
13 */
14export function isHostText(instance: TestInstance | null) {
15 return typeof instance?.type === 'string' && HOST_TEXT_NAMES.includes(instance.type);
16}
17
18/**
19 * Checks if the given element is a host TextInput element.

Callers 7

queryAllByTextFunction · 0.90
isAccessibilityElementFunction · 0.90
getRoleFunction · 0.90
computeAriaDisabledFunction · 0.90
computeAccessibleNameFunction · 0.90
isEnabledHostElementFunction · 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…