Skip to content

Commit

Permalink
Document ability to pass Element via ItemSeparatorComponent (#3343)
Browse files Browse the repository at this point in the history
  • Loading branch information
retyui authored Sep 25, 2022
1 parent c9448b0 commit 86139c5
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 24 deletions.
8 changes: 4 additions & 4 deletions docs/flatlist.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,11 @@ For simplicity, data is a plain array. If you want to use something else, like a

### `ItemSeparatorComponent`

Rendered in between each item, but not at the top or bottom. By default, `highlighted` and `leadingItem` props are provided. `renderItem` provides `separators.highlight`/`unhighlight` which will update the `highlighted` prop, but you can also add custom props with `separators.updateProps`.
Rendered in between each item, but not at the top or bottom. By default, `highlighted` and `leadingItem` props are provided. `renderItem` provides `separators.highlight`/`unhighlight` which will update the `highlighted` prop, but you can also add custom props with `separators.updateProps`. Can be a React Component (e.g. `SomeComponent`), or a React element (e.g. `<SomeComponent />`).

| Type |
| --------- |
| component |
| Type |
| ---------------------------- |
| component, function, element |

---

Expand Down
8 changes: 4 additions & 4 deletions docs/sectionlist.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,11 @@ Reverses the direction of scroll. Uses scale transforms of -1.

### `ItemSeparatorComponent`

Rendered in between each item, but not at the top or bottom. By default, `highlighted`, `section`, and `[leading/trailing][Item/Section]` props are provided. `renderItem` provides `separators.highlight`/`unhighlight` which will update the `highlighted` prop, but you can also add custom props with `separators.updateProps`.
Rendered in between each item, but not at the top or bottom. By default, `highlighted`, `section`, and `[leading/trailing][Item/Section]` props are provided. `renderItem` provides `separators.highlight`/`unhighlight` which will update the `highlighted` prop, but you can also add custom props with `separators.updateProps`. Can be a React Component (e.g. `SomeComponent`), or a React element (e.g. `<SomeComponent />`).

| Type |
| ------------------ |
| component, element |
| Type |
| ---------------------------- |
| component, function, element |

---

Expand Down
8 changes: 4 additions & 4 deletions docs/virtualizedlist.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ Each cell is rendered using this element. Can be a React Component Class, or a r
### `ItemSeparatorComponent`
Rendered in between each item, but not at the top or bottom. By default, `highlighted` and `leadingItem` props are provided. `renderItem` provides `separators.highlight`/`unhighlight` which will update the `highlighted` prop, but you can also add custom props with `separators.updateProps`.
Rendered in between each item, but not at the top or bottom. By default, `highlighted` and `leadingItem` props are provided. `renderItem` provides `separators.highlight`/`unhighlight` which will update the `highlighted` prop, but you can also add custom props with `separators.updateProps`. Can be a React Component (e.g. `SomeComponent`), or a React element (e.g. `<SomeComponent />`).
| Type |
| ------------------- |
| component, function |
| Type |
| ---------------------------- |
| component, function, element |
---
Expand Down
8 changes: 4 additions & 4 deletions website/versioned_docs/version-0.70/flatlist.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,11 @@ For simplicity, data is a plain array. If you want to use something else, like a

### `ItemSeparatorComponent`

Rendered in between each item, but not at the top or bottom. By default, `highlighted` and `leadingItem` props are provided. `renderItem` provides `separators.highlight`/`unhighlight` which will update the `highlighted` prop, but you can also add custom props with `separators.updateProps`.
Rendered in between each item, but not at the top or bottom. By default, `highlighted` and `leadingItem` props are provided. `renderItem` provides `separators.highlight`/`unhighlight` which will update the `highlighted` prop, but you can also add custom props with `separators.updateProps`. Can be a React Component (e.g. `SomeComponent`), or a React element (e.g. `<SomeComponent />`).

| Type |
| --------- |
| component |
| Type |
| ---------------------------- |
| component, function, element |

---

Expand Down
8 changes: 4 additions & 4 deletions website/versioned_docs/version-0.70/sectionlist.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,11 @@ Reverses the direction of scroll. Uses scale transforms of -1.

### `ItemSeparatorComponent`

Rendered in between each item, but not at the top or bottom. By default, `highlighted`, `section`, and `[leading/trailing][Item/Section]` props are provided. `renderItem` provides `separators.highlight`/`unhighlight` which will update the `highlighted` prop, but you can also add custom props with `separators.updateProps`.
Rendered in between each item, but not at the top or bottom. By default, `highlighted`, `section`, and `[leading/trailing][Item/Section]` props are provided. `renderItem` provides `separators.highlight`/`unhighlight` which will update the `highlighted` prop, but you can also add custom props with `separators.updateProps`. Can be a React Component (e.g. `SomeComponent`), or a React element (e.g. `<SomeComponent />`).

| Type |
| ------------------ |
| component, element |
| Type |
| ---------------------------- |
| component, function, element |

---

Expand Down
8 changes: 4 additions & 4 deletions website/versioned_docs/version-0.70/virtualizedlist.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ Each cell is rendered using this element. Can be a React Component Class, or a r
### `ItemSeparatorComponent`
Rendered in between each item, but not at the top or bottom. By default, `highlighted` and `leadingItem` props are provided. `renderItem` provides `separators.highlight`/`unhighlight` which will update the `highlighted` prop, but you can also add custom props with `separators.updateProps`.
Rendered in between each item, but not at the top or bottom. By default, `highlighted` and `leadingItem` props are provided. `renderItem` provides `separators.highlight`/`unhighlight` which will update the `highlighted` prop, but you can also add custom props with `separators.updateProps`. Can be a React Component (e.g. `SomeComponent`), or a React element (e.g. `<SomeComponent />`).
| Type |
| ------------------- |
| component, function |
| Type |
| ---------------------------- |
| component, function, element |
---
Expand Down

0 comments on commit 86139c5

Please sign in to comment.