MCPcopy Index your code
hub / github.com/callstack/agent-device / applyHiddenContentHintsToNodes

Function applyHiddenContentHintsToNodes

src/platforms/android/snapshot.ts:800–816  ·  view source on GitHub ↗
(
  hintsByIndex: ReadonlyMap<number, HiddenContentHint>,
  nodes: RawSnapshotNode[],
)

Source from the content-addressed store, hash-verified

798}
799
800function applyHiddenContentHintsToNodes(
801 hintsByIndex: ReadonlyMap<number, HiddenContentHint>,
802 nodes: RawSnapshotNode[],
803): void {
804 for (const [index, hint] of hintsByIndex) {
805 const node = nodes[index];
806 if (!node) {
807 continue;
808 }
809 if (hint.hiddenContentAbove) {
810 node.hiddenContentAbove = true;
811 }
812 if (hint.hiddenContentBelow) {
813 node.hiddenContentBelow = true;
814 }
815 }
816}

Callers 1

snapshotAndroidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected