Fix onEndReached
not firing sometimes on web (#4728)
* handle off screen visibility observer. * Revert "handle off screen visibility observer." This reverts commit e499ea0ed66b31964f79261b41f58a288b0cdb6f. * key ftw * Remove special case --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
This commit is contained in:
parent
d837f96478
commit
ca7386967a
2 changed files with 2 additions and 10 deletions
|
@ -365,6 +365,7 @@ function ListImpl<ItemT>(
|
|||
root={containWeb ? nativeRef : null}
|
||||
onVisibleChange={onTailVisibilityChange}
|
||||
bottomMargin={(onEndReachedThreshold ?? 0) * 100 + '%'}
|
||||
key={data?.length}
|
||||
/>
|
||||
)}
|
||||
{footerComponent}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue