MCPcopy Create free account
hub / github.com/callstack/agent-device / toFlowBlock

Function toFlowBlock

src/platforms/android/scroll-hints.ts:366–372  ·  view source on GitHub ↗
(rect: Rect, viewportRect: Rect)

Source from the content-addressed store, hash-verified

364}
365
366function toFlowBlock(rect: Rect, viewportRect: Rect): FlowBlock {
367 return {
368 start: rect.y - viewportRect.y,
369 size: rect.height,
370 crossSize: rect.width,
371 };
372}
373
374function hasPositiveVerticalExtent(rect: Rect): boolean {
375 return rect.height > 0;

Callers 2

collectVisibleFlowBlocksFunction · 0.85
toNativeScrollViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…