Commit 1632f76
Restore initiallyFocusedItemKey for auto-scroll on mount
Re-adds initiallyFocusedItemKey so the list scrolls to the first
preselected item when opening the page. This does not cause scroll
jumps on item selection because FlashList's initialScrollIndex only
applies on mount and useArrowKeyFocusManager ignores prop changes
after its initial useState call.
Co-authored-by: mkhutornyi <mkhutornyi@users.noreply.github.com>1 parent edc56c3 commit 1632f76
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
0 commit comments