MCPcopy
hub / github.com/callstack/react-native-testing-library / isInstanceMounted

Function isInstanceMounted

src/helpers/component-tree.ts:13–15  ·  view source on GitHub ↗
(instance: TestInstance)

Source from the content-addressed store, hash-verified

11}
12
13export function isInstanceMounted(instance: TestInstance) {
14 return getContainerInstance(instance) === screen.container;
15}
16
17/**
18 * Returns host siblings for given element.

Callers 2

fireEventFunction · 0.90
dispatchEventFunction · 0.90

Calls 1

getContainerInstanceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…