# Dashboard — React Native screen for Expo

A finance / analytics home screen: a collapsing “Overview” large title with bell and avatar, time-of-day greeting, Day / Week / Month switcher, a revenue area chart that rises in on every period change and scrubs under your finger while the headline number rolls, KPI tiles with sparklines, springy quick actions and recent transactions — plus skeleton loading and pull-to-refresh.

- Docs: https://expokit.in/docs/blocks/dashboard
- Tier: Pro (ExpoKit Pro plan)
- Also called: dashboard screen, admin dashboard, analytics dashboard
- 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, list-item, number-ticker, segmented-control, skeleton
- Variants: Default, Loading, Dollars, Rupees

## 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 |
| --- | --- | --- | --- |
| `data` | `{ userName?, avatar?, periods: Record<'day' \| 'week' \| 'month', { revenue, delta, series, labels?, kpis }>, transactions }` | `sample merchant` | Everything the screen shows. KPIs: { id, label, value, format?: 'money' \| 'count' \| 'percent', delta?, trend?, invert? }. Transactions: { id, title, subtitle?, amount (signed), category?, pending? }. |
| `currency` | `string` | `'₹'` | Symbol placed before money values. |
| `formatMoney` | `(value: number) => string` | — | Custom money formatter (overrides currency), e.g. Intl.NumberFormat or en-IN grouping. |
| `title` | `string` | `'Overview'` | Large title. |
| `defaultPeriod / period` | `'day' \| 'week' \| 'month'` | `'week'` | Uncontrolled initial period, or controlled period. |
| `onPeriodChange` | `(period) => void` | — | Segmented control changed. |
| `loading` | `boolean` | `false` | Shows skeleton placeholders for the chart, KPIs, actions and transactions. |
| `onRefresh` | `() => void \| Promise` | — | Enables pull-to-refresh; a returned promise keeps the spinner until it settles. |
| `refreshing` | `boolean` | — | Controlled refreshing flag. |
| `quickActions` | `{ id, label, icon: 'send' \| 'request' \| 'topup' \| 'cards' \| 'more' }[]` | `Send · Request · Top up · Cards` | Round shortcut buttons under the KPIs. |
| `onQuickAction` | `(action) => void` | — | A quick action was tapped. |
| `onSelectTransaction` | `(transaction) => void` | — | Makes transaction rows pressable. |
| `onSeeAllTransactions` | `() => void` | — | Shows a “See all” link beside the section heading. |
| `onSelectKpi` | `(kpi) => void` | — | Makes KPI tiles pressable. |
| `onPressAvatar / onPressNotifications` | `() => void` | — | Header avatar and bell. |
| `notificationBadge` | `boolean \| number` | — | Red dot on the bell. |
| `accent` | `string` | `theme accent` | Chart, quick action and refresh 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 a dashboard screen in React Native?

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

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

Dashboard 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 Dashboard 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/dashboard
- 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
