(
event: NativeSyntheticEvent<TextLayoutEventData>
)
| 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, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…