# Inbox — React Native screen for Expo

A messaging inbox: search, All / Unread / Mentions filter chips with counts, swipeable rows to archive, delete or mark read, unread count badges and a friendly empty state.

- Docs: https://expokit.in/docs/blocks/inbox
- Tier: Pro (ExpoKit Pro plan)
- Also called: inbox screen, email list, messages list
- Category: Blocks
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- npm dependencies: react-native-svg, expo-haptics
- Uses ExpoKit items: kit, avatar, badge, button, chip-group, search-bar, swipeable-row
- Variants: Default, Empty Mentions

## 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 |
| --- | --- | --- | --- |
| `messages` | `{ id, from, avatar?, subject, preview, time, unread?, mentioned?, online? }[]` | `6 sample threads` | Initial threads. Archive / delete / read state is kept locally. |
| `title` | `string` | `'Inbox'` | Screen heading. |
| `defaultFilter` | `'all' \| 'unread' \| 'mentions'` | `'all'` | Initially selected filter chip. |
| `onOpen` | `(message) => void` | — | A row was tapped (it is marked read). |
| `onArchive` | `(message) => void` | — | Swiped / tapped Archive. |
| `onDelete` | `(message) => void` | — | Swiped / tapped Delete. |
| `onToggleRead` | `(message, unread: boolean) => void` | — | Marked read or unread. |
| `onCompose` | `() => void` | — | Shows a compose button in the header when set. |
| `accent` | `string` | `theme accent` | Chip, badge, search focus and time colour. |
| `style` | `StyleProp<ViewStyle>` | — | Root style. |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |

## FAQ

### How do I make an inbox screen in React Native?

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

Yes. Inbox 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 Inbox 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 Inbox free?

Inbox 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 Inbox 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/inbox
- 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
