ifsnow / FlatListImprovementTest

FlatList Improvement Test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

FlatList Improvement Test


Languages

Language:JavaScript 88.0%Language:Objective-C 4.9%Language:Ruby 2.7%Language:Python 2.3%Language:Java 2.1%