# Donut Shop — React Native screen for Expo

> Donuts roll across a carousel and zoom into a detail view beside their nutrition.

A dessert shop screen where the products roll. Swipe and the donuts roll across the carousel like wheels; "+" grows into a stepper and an add-to-cart bar rises; tap the donut and it zooms out to the edge of the screen, still turning, beside its nutrition. The donuts are drawn — icing, sprinkles, drizzle — with light that stays put while they spin, or pass your own round product art.

- Docs: https://expokit.in/docs/blocks/donut-shop
- Tier: Pro (ExpoKit Pro plan)
- Also called: food app screen, product detail screen, shop UI
- Category: Blocks
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- npm dependencies: react-native-svg, expo-haptics
- Uses ExpoKit items: kit
- Variants: Default, Menu

## Installation

This screen 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 |
| --- | --- | --- | --- |
| `items` | `DonutItem[]` | `5 donuts` | { name, price, icing, topping?, toppingColor?, image?, nutrition? }. |
| `title` | `string` | `'Dunats'` | Shop name, in a script face. |
| `currency` | `string` | `'$'` | Prefix for prices. |
| `background` | `string` | `soft pink` | Page colour in light mode. |
| `initialIndex` | `number` | `0` | Donut shown first. |
| `onIndexChange` | `(index: number) => void` | — | The centred donut changed. |
| `onAddToCart` | `(item, quantity) => void` | — | Add to Cart pressed. |
| `style` | `StyleProp<ViewStyle>` | `flex: 1` | Root style. |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |

## Behaviour & accessibility

- **Swipe**: Donuts roll a full turn per circumference travelled and snap to the nearest; the centre one is larger.
- **+**: Grows into a + 01 − stepper; an add-to-cart bar with the running total rises from the bottom.
- **Detail**: Tap the donut: the list pushes away, the donut zooms to the right edge and keeps turning, the name and nutrition chips slide in. Back reverses it.
- **Art**: Drawn donuts per item (icing colour, sprinkles / drizzle / specks), or your own image per item.
- **Haptics**: A tick on each snap and a medium impact on Add to Cart.
- **Reduced motion**: The detail donut stops its idle spin.

## FAQ

### How do I make a food app screen in React Native?

Use ExpoKit's Donut Shop, a Pro screen: with ExpoKit Pro, the ExpoKit CLI copies a ready-made food app screen 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 Donut Shop work in Expo Go?

Yes. Donut Shop runs in Expo Go on iOS and Android with no development build — its packages (react-native-svg, expo-haptics) are all included in Expo Go.

### How do I add Donut Shop to my Expo app?

With ExpoKit Pro, add it with the ExpoKit CLI: it copies the screen's source into your app and installs react-native-svg, expo-haptics, so the code is yours to change. The install command is on this page for Pro members.

### Is Donut Shop free?

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

### Can I change how Donut Shop looks?

Yes. It takes its colours, radius and light / dark mode from useKit(), so wrapping your app in <KitProvider accent radius> re-skins it with every other ExpoKit screen. The code lives in your project, so you can also edit anything directly.

## More

- Live preview, variants and code: https://expokit.in/docs/blocks/donut-shop
- 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
