Skip to content

Commit 781d1af

Browse files
author
Claudéric Demers
authored
Update README.md
1 parent 2efeda4 commit 781d1af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ render(
7979
| scrollDirection | String | | Whether the list should scroll vertically or horizontally. One of `'vertical'` (default) or `'horizontal'`. |
8080
| scrollOffset | Number | | Can be used to control the scroll offset; Also useful for setting an initial scroll offset |
8181
| scrollToIndex | Number | | Item index to scroll to (by forcefully scrolling if necessary) |
82-
| scrollToAlignment | String | | Used in combination with `scrollToIndex`, this prop controls the alignment of the scrolled to item. One of: `'start'`, `'center'`, `'end'` or `'auto'`. Use `'start'` to always align items to the top of the container and `'end'` to align them bottom. Use `'center`' to align them in the middle of the container. 'auto'` scrolls the least amount possible to ensure that the specified `scrollToIndex` item is fully visible. |
82+
| scrollToAlignment | String | | Used in combination with `scrollToIndex`, this prop controls the alignment of the scrolled to item. One of: `'start'`, `'center'`, `'end'` or `'auto'`. Use `'start'` to always align items to the top of the container and `'end'` to align them bottom. Use `'center`' to align them in the middle of the container. `'auto'` scrolls the least amount possible to ensure that the specified `scrollToIndex` item is fully visible. |
8383
| overscanCount | Number | | Number of extra buffer items to render above/below the visible items. Tweaking this can help reduce scroll flickering on certain browsers/devices. |
8484
| estimatedItemSize | Number | | Used to estimate the total size of the list before all of its items have actually been measured. The estimated total height is progressively adjusted as items are rendered. |
8585
| onRowsRendered | Function | | Callback invoked with information about the slice of rows that were just rendered. It has the following signature: `({startIndex: number, stopIndex: number})`. |

0 commit comments

Comments
 (0)