Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to pass ItemSeparatorComponent as React Element #3343

Merged
merged 2 commits into from
Sep 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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