React Native · Components
Carousel
Swipeable slideshow: product images, promo cards, stories, logo strips.
Live example
The preview runs in the browser with the web component; the native component takes the same props and looks the same on iOS and Android.
Preview

Morning in Cappadocia
1slide

Aegean bays
2slide

Black Sea highlands
3slide

Sunset on the Mediterranean
4slide

Eastern Express
5slide

Pamukkale travertines
6slide
Code
Events
- Events appear here when you interact with the preview.
Seamless loop: keep swiping past the end

Morning in Cappadocia
1slide

Aegean bays
2slide

Black Sea highlands
3slide

Sunset on the Mediterranean
4slide

Eastern Express
5slide

Pamukkale travertines
6slide
Story style: bars fill up, holding pauses

Morning in Cappadocia

Aegean bays

Black Sea highlands

Sunset on the Mediterranean
Product strip: 1.5 / 3 / 4 cards by width, page by page

Product 1
Free shipping
₺149

Product 2
Free shipping
₺298

Product 3
Free shipping
₺447

Product 4
Free shipping
₺596

Product 5
Free shipping
₺745

Product 6
Free shipping
₺894

Product 7
Free shipping
₺1043

Product 8
Free shipping
₺1192

Product 9
Free shipping
₺1341

Product 10
Free shipping
₺1490

Product 11
Free shipping
₺1639
Logo stream (marquee): slows to a stop on hover, draggable
Controlled from outside (ref) and a custom active state

Morning in Cappadocia
1slide

Aegean bays
2slide

Black Sea highlands
3slide

Sunset on the Mediterranean
4slide

Eastern Express
5slide

Pamukkale travertines
6slide
Import
Carousel
componentSwipeable slideshow: product images, promo cards, stories, logo strips. Snap points, loop and flick calculations are the same as web (@yasinsensoy/core/carousel). Motion runs on the native driver (useNativeDriver); in loop mode the strip never visibly rewinds.
Examples
ResponsiveValue
typeA value that varies with width: a single value or { min_width: value } (the carousel's own width).
CarouselEffect
typeTransition look: side-by-side slide, cross-fade, scaling down away from the center, or your own function. The function receives the slide's distance from the aligned position (in slides, -1 is the previous one) as an Animated value.
Indicators: dots, story lines, a 3 / 8 counter, thumbnails or none.
CarouselAutoplay
interfaceAutoplay settings.
| Name | Type | Default | Description |
|---|---|---|---|
delay? | number | 5000 | Time spent on a slide (ms). |
stopOnInteraction? | boolean | false | Stops permanently when touched; with false the timer restarts. |
CarouselHandle
interfaceMethods of the Carousel ref (same as web).
| Name | Type | Description |
|---|---|---|
next | () => void | Goes to the next slide (or page). |
prev | () => void | Goes to the previous slide. |
goTo | (index: number, options?: { instant?: boolean; }) => void | Goes to a slide. |
play | () => void | Starts autoplay. |
pause | () => void | Pauses autoplay. |
CarouselProps
interfaceProps of Carousel (same names as web).
| Name | Type | Default | Description |
|---|---|---|---|
children | ReactNode | Slides: each child is a slide. | |
label? | string | "Karusel" | Screen reader name. |
loop? | boolean | false | Infinite loop: the first slide follows the last one seamlessly. |
slidesPerView? | ResponsiveValue<number> | 1 | Number of visible slides; may be fractional (1.2). |
gap? | ResponsiveValue<number> | 16 | Gap between slides (px). |
align? | CarouselAlign | "start" | Alignment of the slide in the visible area. |
step? | number | "page" | 1 | How many slides to advance per move; "page" advances by the visible count. |
orientation? | "horizontal" | "vertical" | "horizontal" | Direction. Vertical requires height. |
height? | number | Height (required when vertical). | |
index? | number | Selected slide (controlled). | |
defaultIndex? | number | 0 | Initial slide. |
onIndexChange? | (index: number) => void | When the selected slide changes (also while dragging). | |
onSettle? | (index: number) => void | When the motion ends and the slide settles into place. | |
autoplay? | boolean | number | CarouselAutoplay | Autoplay: true, the delay (ms) or settings. Stops while dragging. | |
marquee? | boolean | number | Continuous flow (logo strip): scrolls at this speed (px/s); negative reverses. true = 40. | |
effect? | CarouselEffect | "slide" | Transition look. |
arrows? | boolean | "always" | true | Previous/next arrows. On touch screens visible only with "always". |
indicators? | CarouselIndicators | "dots" | Indicators. |
indicatorsPlacement? | "inside" | "outside" | "outside" | Whether indicators are over or below the slide. |
thumbnails? | readonly (string | ReactNode)[] | Thumbnails (indicators="thumbnails"): a URL or an element. | |
draggable? | boolean | true | Draggable by touch. |
snap? | boolean | true | Snaps to slides; with false scrolls freely. |
skipSnaps? | boolean | false | A quick flick may skip several slides. |
rewind? | boolean | false | Without loop, the arrow at an end goes to the other end. |
duration? | number | 500 | Duration of the snap animation (ms). |
ref? | Ref<CarouselHandle> | External control. | |
style? | StyleProp<ViewStyle> | Container style. |