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

Function onDescriptionTextLayout

src/components/List/ListItem.tsx:169–177  ·  view source on GitHub ↗
(
    event: NativeSyntheticEvent<TextLayoutEventData>
  )

Source from the content-addressed store, hash-verified

167 const [alignToTop, setAlignToTop] = React.useState(false);
168
169 const onDescriptionTextLayout = (
170 event: NativeSyntheticEvent<TextLayoutEventData>
171 ) => {
172 if (!theme.isV3) {
173 return;
174 }
175 const { nativeEvent } = event;
176 setAlignToTop(nativeEvent.lines.length >= 2);
177 };
178
179 const renderDescription = (
180 descriptionColor: string,

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…