This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
LazyColumn
A Jetpack Compose LazyColumn component for displaying scrollable lists.
Expo UI LazyColumn matches the official Jetpack Compose LazyColumn API and displays a vertically scrolling list.


Installation
If you are installing this in an existing React Native app, make sure to install expo in your project.
Usage
Basic lazy column
Each child of LazyColumn is one row. Use the verticalArrangement prop to space the rows and the contentPadding prop to add padding around the list content.
Large lists
Use LazyColumn.Items to render rows from an array. Pass the items as data, a unique key for each item with keyExtractor, and a children function that returns the row for an item. LazyColumn.Items renders only the rows near the visible area and reuses them while you scroll.
Follow these rules when you render rows:
- Define the
childrenfunction outside the component, or wrap it inuseCallback. Otherwise, the rows near the visible area render again each time the component renders. - A reused row keeps the local state (
useState) of the item it showed before. Reset the state when the item changes, or keep the state outside the row. - A row that is not ready yet shows an empty placeholder. Set
estimatedItemSizeclose to the height of your rows, in density-independent pixels (dp). - Use
overscanCountto prepare more rows above and below the visible rows. - To update the rows, pass a new
dataarray. Do not change the array in place. - Set
recycling={false}to render every row up front.
API
import { LazyColumn } from '@expo/ui/jetpack-compose';
Components
Type: React.Element<LazyItemsProps<T>>
A block of recycled rows inside LazyColumn or LazyRow, mirroring the Compose
items(count, key) builder. Only a small pool of rows around the visible range is mounted,
so large data sets stay cheap. Rows that are not ready yet show a placeholder of
estimatedItemSize, or of the size last measured for that item.
Mount it as a direct child of LazyColumn or LazyRow.
(info: {
index: number,
item: T
}) => ReactElementRenders an item. Wrap it in useCallback, or every item re-renders on each parent render.
Recycled views are reused for other items, so their local state (useState) carries over.
Reset it when the item changes, or keep the state outside the view.
number • Default: 64Placeholder size in dp along the scroll axis, until an item is measured. Must be positive.
Ignored when recycling is false.
(item: T, index: number) => stringReturns a stable, unique string key, also used as the lazy list item key.
number • Default: 10Extra items to prepare on each side of the visible items. Must be a non-negative integer.
Ignored when recycling is false.
Type: React.Element<LazyColumnProps>
A lazy column component that efficiently displays a vertically scrolling list.
stringThe horizontal alignment of items.
Acceptable values are: 'center' | 'start' | 'end'