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

Function onLayout

src/components/ProgressBar.tsx:188–191  ·  view source on GitHub ↗
(event: LayoutChangeEvent)

Source from the content-addressed store, hash-verified

186 }, [prevWidth, startAnimation, visible]);
187
188 const onLayout = (event: LayoutChangeEvent) => {
189 setPrevWidth(width);
190 setWidth(event.nativeEvent.layout.width);
191 };
192
193 const tintColor = color || theme.colors?.primary;
194 const trackTintColor = theme.isV3

Callers 2

handleTextLayoutFunction · 0.85
TextInputOutlinedFunction · 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…