MCPcopy Create free account
hub / github.com/callstack/react-native-paper / handleTextLayout

Function handleTextLayout

src/components/HelperText/HelperText.tsx:120–123  ·  view source on GitHub ↗
(e: LayoutChangeEvent)

Source from the content-addressed store, hash-verified

118 }, [visible, scale, shown]);
119
120 const handleTextLayout = (e: LayoutChangeEvent) => {
121 onLayout?.(e);
122 textHeight = e.nativeEvent.layout.height;
123 };
124
125 const textColor = getTextColor({ theme, disabled, type });
126

Callers

nothing calls this directly

Calls 1

onLayoutFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…