Skip to content

Commit 86139c5

Browse files
authored
Document ability to pass Element via ItemSeparatorComponent (facebook#3343)
1 parent c9448b0 commit 86139c5

File tree

6 files changed

+24
-24
lines changed

6 files changed

+24
-24
lines changed

docs/flatlist.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,11 @@ For simplicity, data is a plain array. If you want to use something else, like a
245245

246246
### `ItemSeparatorComponent`
247247

248-
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`.
248+
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 />`).
249249

250-
| Type |
251-
| --------- |
252-
| component |
250+
| Type |
251+
| ---------------------------- |
252+
| component, function, element |
253253

254254
---
255255

docs/sectionlist.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,11 @@ Reverses the direction of scroll. Uses scale transforms of -1.
248248

249249
### `ItemSeparatorComponent`
250250

251-
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`.
251+
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 />`).
252252

253-
| Type |
254-
| ------------------ |
255-
| component, element |
253+
| Type |
254+
| ---------------------------- |
255+
| component, function, element |
256256

257257
---
258258

docs/virtualizedlist.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ Each cell is rendered using this element. Can be a React Component Class, or a r
149149
150150
### `ItemSeparatorComponent`
151151
152-
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`.
152+
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 />`).
153153
154-
| Type |
155-
| ------------------- |
156-
| component, function |
154+
| Type |
155+
| ---------------------------- |
156+
| component, function, element |
157157
158158
---
159159

website/versioned_docs/version-0.70/flatlist.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,11 @@ For simplicity, data is a plain array. If you want to use something else, like a
245245

246246
### `ItemSeparatorComponent`
247247

248-
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`.
248+
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 />`).
249249

250-
| Type |
251-
| --------- |
252-
| component |
250+
| Type |
251+
| ---------------------------- |
252+
| component, function, element |
253253

254254
---
255255

website/versioned_docs/version-0.70/sectionlist.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,11 @@ Reverses the direction of scroll. Uses scale transforms of -1.
248248

249249
### `ItemSeparatorComponent`
250250

251-
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`.
251+
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 />`).
252252

253-
| Type |
254-
| ------------------ |
255-
| component, element |
253+
| Type |
254+
| ---------------------------- |
255+
| component, function, element |
256256

257257
---
258258

website/versioned_docs/version-0.70/virtualizedlist.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ Each cell is rendered using this element. Can be a React Component Class, or a r
149149
150150
### `ItemSeparatorComponent`
151151
152-
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`.
152+
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 />`).
153153
154-
| Type |
155-
| ------------------- |
156-
| component, function |
154+
| Type |
155+
| ---------------------------- |
156+
| component, function, element |
157157
158158
---
159159

0 commit comments

Comments
 (0)