MCPcopy Index your code
hub / github.com/callstack/react-native-paper / overflowRight

Function overflowRight

src/components/Tooltip/utils.ts:44–48  ·  view source on GitHub ↗
(center: number, tooltipWidth: number)

Source from the content-addressed store, hash-verified

42 * The tooltip width will grow from right to left relative to the wrapped element.
43 */
44const overflowRight = (center: number, tooltipWidth: number): boolean => {
45 const { width: layoutWidth } = Dimensions.get('window');
46
47 return center + tooltipWidth > layoutWidth;
48};
49
50/**
51 * Return true when the children y-coordinate + its height + tooltip height is greater than the layout height.

Callers 1

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