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

Function handleOnLayout

src/components/Tooltip/Tooltip.tsx:174–184  ·  view source on GitHub ↗
({ nativeEvent: { layout } }: LayoutChangeEvent)

Source from the content-addressed store, hash-verified

172 }, [children.props, handleTouchEnd, isValidChild]);
173
174 const handleOnLayout = ({ nativeEvent: { layout } }: LayoutChangeEvent) => {
175 childrenWrapperRef.current?.measure(
176 (_x, _y, width, height, pageX, pageY) => {
177 setMeasurement({
178 children: { pageX, pageY, height, width },
179 tooltip: { ...layout },
180 measured: true,
181 });
182 }
183 );
184 };
185
186 const mobilePressProps = {
187 onPress: handlePress,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…