({ images }: { images: string[] })
| 10 | import { List, useDynamicRowHeight } from "react-window"; |
| 11 | |
| 12 | function Example({ images }: { images: string[] }) { |
| 13 | const rowHeight = useDynamicRowHeight({ |
| 14 | defaultRowHeight: 250 |
| 15 | }); |
| 16 | |
| 17 | return ( |
| 18 | <List<RowProps> |
| 19 | rowComponent={RowComponent} |
| 20 | rowCount={images.length} |
| 21 | rowHeight={rowHeight} |
| 22 | rowProps={{ images }} |
| 23 | /> |
| 24 | ); |
| 25 | } |
| 26 | |
| 27 | // <end> |
| 28 |
nothing calls this directly
no test coverage detected
searching dependent graphs…