3 min
Carousels, from onboarding to product shelves
Some carousels are onboarding pages. Some are a product shelf with the next card already peeking. I do not treat those as the same motion.
People type react native carousel when they want cards that move sideways and land on a page. Onboarding screens, shop shelves, and image viewers all ask for that motion. I keep the carousels that settle cleanly under Data Display for that reason.
A free ScrollView is the wrong first try
The first version almost everyone writes is a horizontal ScrollView. It moves. It does not settle. Without a page size, the finger lifts wherever it lifts, and the card hangs between two positions.
pagingEnabled on that scroll view is the next step. Each flick advances by the viewport width. That is enough for a full-bleed onboarding page. It is not enough when the next card should peek, or when the page width is not the screen width.
Peek cards need snapToInterval, not paging
A product shelf that shows a sliver of the next item wants a snap distance equal to one card plus one gap. FlatList already takes that:
const CARD = 280;
const GAP = 12;
<FlatList
horizontal
data={items}
renderItem={renderCard}
snapToInterval={CARD + GAP}
decelerationRate="fast"
showsHorizontalScrollIndicator={false}
ItemSeparatorComponent={() => <View style={{ width: GAP }} />}
contentContainerStyle={{ paddingHorizontal: 16 }}
/>
decelerationRate="fast" is the line people forget. Without it the list coasts past the snap point and drifts back, which reads as soft. The snap math is yours to get wrong once, usually by forgetting the gap or the content inset.
Peek cards and full-bleed pages are different jobs
A product gallery with a sliver of the next card is not the same component as a full-screen story pager. One wants the interval above. The other wants page-sized items and a page indicator. An onboarding carousel and a shop shelf can share a list, but not the snap settings.
Loop or finite, dots or none, free drag or page locks: naming those jobs separately is what keeps the pattern useful when you search later.
The snap has to feel native
The snap is what makes the motion feel finished. On release, the nearest page should own the motion, including the little overshoot fingers expect from the system.
That is why libraries such as react-native-reanimated-carousel exist. They run the gesture and the settle on the UI thread with Reanimated and Gesture Handler, so the card tracks the finger and lands without a layout jump. Built-in snapping is still right for many screens. Reach for a dedicated carousel when looping or custom page interpolation is the point.
A fanned card carousel is that second kind: the cards do more than slide, so the page math is custom too.
Watch the release, not the drag
Screenshots do not show the settle, and the settle is the whole decision. When the cards themselves are the hard part, the post on product and profile cards covers product, profile, and feed tiles.
For the sideways motion, flick each candidate in the Carousel filter and watch where it lands.