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

Function isHostModal

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

Source from the content-addressed store, hash-verified

52 * @param instance The instance to check.
53 */
54export function isHostModal(instance: TestInstance | null) {
55 return typeof instance?.type === 'string' && HOST_MODAL_NAMES.includes(instance.type);
56}

Callers 2

isElementVisibleFunction · 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…