--- id: version-0.49-virtualizedlist title: virtualizedlist original_id: virtualizedlist ---

VirtualizedList #

Base implementation for the more convenient <FlatList> and <SectionList> components, which are also better documented. In general, this should only really be used if you need more flexibility than FlatList provides, e.g. for use with immutable data instead of plain arrays.

Virtualization massively improves memory consumption and performance of large lists by maintaining a finite render window of active items and replacing all items outside of the render window with appropriately sized blank space. The window adapts to scrolling behavior, and items are rendered incrementally with low-pri (after any running interactions) if they are far from the visible area, or with hi-pri otherwise to minimize the potential of seeing blank space.

Some caveats:

Props #

disableVirtualization?: #

first: number #

horizontal?: #

initialNumToRender?: #

keyExtractor?: #

last: number #

maxToRenderPerBatch?: #

onEndReachedThreshold?: #

scrollEventThrottle?: #

updateCellsBatchingPeriod?: #

windowSize?: #

Methods #

scrollToEnd(params?: object) #

scrollToIndex(params: object) #

scrollToItem(params: object) #

scrollToOffset(params: object) #

Scroll to a specific content pixel offset in the list.

Param offset expects the offset to scroll to. In case of horizontal is true, the offset is the x-value, in any other case the offset is the y-value.

Param animated (true by default) defines whether the list should do an animation while scrolling.

recordInteraction() #

flashScrollIndicators() #

Type Definitions #

Props #

Type:
IntersectionTypeAnnotation

Improve this page by sending a pull request!

← PrevNext →