# Ring Carousel — React Native component for Expo

> Cards on a 3D ring you spin with a swipe; it snaps and loops forever.

Cards on a 3D ring you spin with a swipe — it loops forever, snaps with flick momentum, and neighbours turn, shrink and fall into shadow as they go round the back, each with a real shadow. Tap a side card to turn to it; optional autoplay.

- Docs: https://expokit.in/docs/components/ring-carousel
- Tier: Pro (ExpoKit Pro plan)
- Also called: 3D carousel, circular carousel, rotating carousel
- Category: 3D
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- Uses ExpoKit items: kit
- Variants: Destinations, Albums, Autoplay

## Installation

This component is part of ExpoKit Pro. With a Pro plan, log the CLI in once and add it like any other item:

```bash
npx @expokit/cli@latest login
```

Plans: https://expokit.in/pricing

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `data` | `T[]` | — | Items, one card each. |
| `renderItem` | `({ item, index, active }) => ReactNode` | — | Render a card. `active` is true for the card facing you. |
| `keyExtractor` | `(item: T, index: number) => string` | `index` | React key for each card. |
| `itemWidth` | `number` | `170` | Card width. |
| `itemHeight` | `number` | `230` | Card height. |
| `spacing` | `number` | `360 / count (≤ 45)` | Degrees between neighbours. |
| `autoplay` | `boolean \| number` | `false` | Turn every 3s (or N ms); pauses while touched. |
| `index` | `number` | — | Controlled front card. |
| `defaultIndex` | `number` | `0` | Uncontrolled initial front card. |
| `onIndexChange` | `(index: number) => void` | — | Fires when the front card changes. |
| `onPress` | `(item: T, index: number) => void` | — | Tap on the front card. |
| `pagination` | `boolean` | `true` | Dots under the ring. |
| `accent` | `string` | `theme foreground` | Active dot colour. |
| `radius` | `number` | `18` | Corner radius of each card. |
| `style` | `StyleProp<ViewStyle>` | — | Style for the root view. |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |

## Behaviour & accessibility

- **Touch**: Horizontal drags spin the ring and a flick carries it a little further before snapping. Tapping a side card turns to it; tapping the front card calls onPress.
- **Motion**: Neighbours turn, shrink and fall into shadow as they go round the back. With autoplay it advances every 3s by default and pauses while touched.
- **Screen readers**: The ring is one adjustable element ('2 / 7'): swipe up or down to turn it, double-tap to press the front card. Side cards are hidden.
- **Platforms**: The loop runs on the native driver via Animated.modulo. Each card turns in its own flat layer so iOS never slices a side card into the front one.

## FAQ

### How do I make a 3D carousel in React Native?

Use ExpoKit's Ring Carousel, a Pro component: with ExpoKit Pro, the ExpoKit CLI copies a ready-made 3D carousel into your Expo or React Native app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.

### Does Ring Carousel work in Expo Go?

Yes. Ring Carousel runs in Expo Go on iOS and Android with no development build.

### How do I add Ring Carousel to my Expo app?

With ExpoKit Pro, add it with the ExpoKit CLI: it copies the component's source into your app, so the code is yours to change. The install command is on this page for Pro members.

### Is Ring Carousel free?

Ring Carousel is part of ExpoKit Pro. With a Pro plan, log the CLI in once and it installs the full source into your app.

## More

- Live preview, variants and code: https://expokit.in/docs/components/ring-carousel
- Every ExpoKit component, screen, template and chart: https://expokit.in/llms.txt
- Install commands and props for every free component: https://expokit.in/llms-full.txt
- Pricing: https://expokit.in/pricing
