This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
Carousel
Jetpack Compose Carousel components for displaying scrollable collections of items.
Expo UI provides three carousel components matching the official Jetpack Compose Carousel API: HorizontalCenteredHeroCarousel, HorizontalMultiBrowseCarousel, and HorizontalUncontainedCarousel.
Note: Carousel is a horizontally scrollable component, so the parent
Hostmust provide a finite width on the scroll axis. UsematchContents={{ vertical: true }}together withstyle={{ width: '100%' }}(or any finite width). See Match contents in Host reference for details.


Installation
If you are installing this in an existing React Native app, make sure to install expo in your project.
Usage
HorizontalCenteredHeroCarousel
Centers one large hero item between two small peek items — ideal for spotlighting content like movie posters.
HorizontalMultiBrowseCarousel
Shows a large item alongside smaller peek items, letting users browse what comes next.
HorizontalUncontainedCarousel
Each item has a fixed width with free-form scrolling.
API
import { HorizontalCenteredHeroCarousel, HorizontalMultiBrowseCarousel, HorizontalUncontainedCarousel, } from '@expo/ui/jetpack-compose';
Components
Type: React.Element<ComponentType<HorizontalCenteredHeroCarouselProps>>
A hero carousel that centers one large item between two small peek items,
matching Compose's HorizontalCenteredHeroCarousel.
numberMaximum width of the hero item in dp. When unspecified, the hero item will be as wide as possible.
number • Default: CarouselDefaults.MaxSmallItemSizeMaximum width of small peek items in dp.
number • Default: CarouselDefaults.MinSmallItemSizeMinimum width of small peek items in dp.
Type: React.Element<ComponentType<HorizontalMultiBrowseCarouselProps>>
A carousel that shows a large item alongside smaller peek items,
matching Compose's HorizontalMultiBrowseCarousel.
Type: React.Element<ComponentType<HorizontalUncontainedCarouselProps>>
A carousel where each item has a fixed width with free-form scrolling,
matching Compose's HorizontalUncontainedCarousel.
Types
Literal type: string
Fling behavior type for controlling carousel snapping.
Acceptable values are: 'singleAdvance' | 'noSnap'