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

Function handleLayout

example/src/Examples/BannerExample.tsx:27–30  ·  view source on GitHub ↗
({ nativeEvent }: LayoutChangeEvent)

Source from the content-addressed store, hash-verified

25 const [height, setHeight] = React.useState(0);
26
27 const handleLayout = ({ nativeEvent }: LayoutChangeEvent) => {
28 const { height: layoutHeight } = nativeEvent.layout;
29 setHeight(layoutHeight);
30 };
31
32 const customTheme = !defaultTheme.isV3
33 ? {

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…