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

Function handleLayout

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

Source from the content-addressed store, hash-verified

172 }, [visible, position, scale]);
173
174 const handleLayout = ({ nativeEvent }: LayoutChangeEvent) => {
175 const { height } = nativeEvent.layout;
176 setLayout({ height, measured: true });
177 };
178
179 // The banner animation has 2 parts:
180 // 1. Blank spacer element which animates its height to move the content

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…