Skip to content

Commit 838c3ba

Browse files
committed
Update onLoad callback docs
1 parent b9eb516 commit 838c3ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

documentation/docs/fundamentals/usage.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ export type ContentStyle = Pick<
190190

191191
You can use `contentContainerStyle` to apply padding that will be applied to the whole content itself. For example, you can apply this padding, so that all of your items have leading and trailing space.
192192

193-
194193
### `drawDistance`
195194

196195
```tsx
@@ -349,7 +348,7 @@ How far from the end (in units of visible length of the list) the bottom edge of
349348
onLoad: (info: { elapsedTimeInMs: number }) => void;
350349
```
351350

352-
This event is raised once the list has drawn items on the screen. It also reports elapsedTimeInMs which is the time it took to draw the items. This is required because FlashList doesn't render items in the first cycle. Items are drawn after it measures itself at the end of first render. If you're using ListEmptyComponent, this event is raised as soon as ListEmptyComponent is rendered.
351+
This event is raised once the list has drawn items on the screen. It also reports elapsedTimeInMs which is the time it took to draw the items. This is required because FlashList doesn't render items in the first cycle. Items are drawn after it measures itself at the end of first render. Please note that the event is not fired if ListEmptyComponent is rendered.
353352

354353
### `onRefresh`
355354

0 commit comments

Comments
 (0)