/FlatListImprovementTest

FlatList Improvement Test

Primary LanguageJavaScript

This is for facebook/react-native#26444


This project is to test the improvement of onEndReached feature of FlatList.

  1. The list has 20 items at the beginning.
  2. When onEndReached is called, 10 items are added.

After the initial rendering

# Current FlatList

Current FlatList initial rendering

OnEndReached is called and has 30 items.

# Patched FlatList

Patched FlatList initial rendering

OnEndReached is not called and has 20 items.

After scrolling to the 11th item

# Current FlatList

Current FlatList scrolling

OnEndReached is called twice in a short period, having 50 items.

# Patched FlatList

Patched FlatList scrolling

OnEndReached is called, having 30 items.