MCPcopy
hub / github.com/callstack/react-native-paper / measureMenuLayout

Function measureMenuLayout

src/components/Menu/Menu.tsx:279–286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

277 }, [handleDismiss, handleKeypress]);
278
279 const measureMenuLayout = () =>
280 new Promise<LayoutRectangle>((resolve) => {
281 if (menuRef.current) {
282 menuRef.current.measureInWindow((x, y, width, height) => {
283 resolve({ x, y, width, height });
284 });
285 }
286 });
287
288 const measureAnchorLayout = React.useCallback(
289 () =>

Callers 1

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