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

Function makeScrollSnapshot

src/core/__tests__/dispatch-scroll.test.ts:202–223  ·  view source on GitHub ↗
(options: { hiddenBelow: boolean; message: string })

Source from the content-addressed store, hash-verified

200});
201
202function makeScrollSnapshot(options: { hiddenBelow: boolean; message: string }) {
203 return {
204 backend: 'xctest' as const,
205 nodes: [
206 {
207 index: 1,
208 type: 'ScrollView',
209 label: 'Messages',
210 hiddenContentBelow: options.hiddenBelow ? true : undefined,
211 rect: { x: 0, y: 100, width: 400, height: 600 },
212 },
213 {
214 index: 2,
215 parentIndex: 1,
216 type: 'Button',
217 label: options.message,
218 rect: { x: 0, y: 640, width: 400, height: 56 },
219 },
220 ],
221 truncated: false,
222 };
223}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected