Fix onEndReached not firing sometimes on web (#4728)
* handle off screen visibility observer.
* Revert "handle off screen visibility observer."
This reverts commit e499ea0ed6.
* key ftw
* Remove special case
---------
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
This commit is contained in:
@@ -365,6 +365,7 @@ function ListImpl<ItemT>(
|
||||
root={containWeb ? nativeRef : null}
|
||||
onVisibleChange={onTailVisibilityChange}
|
||||
bottomMargin={(onEndReachedThreshold ?? 0) * 100 + '%'}
|
||||
key={data?.length}
|
||||
/>
|
||||
)}
|
||||
{footerComponent}
|
||||
|
||||
Reference in New Issue
Block a user