# Installation

Works with Expo SDK 54 and newer (checked on every release against the latest create-expo-app) and bare React Native 0.81+.

## 1. Set up your project

```sh
npx @lumioui/cli init
```

Detects `expo` vs `bare` and installs `nativewind`,
`react-native-reanimated`, `react-native-safe-area-context`,
`react-native-svg`, `clsx` and `tailwind-merge` (with `npx expo install`
on Expo, so versions match your SDK). Copies the shared theme, tokens and
hooks into `lib/lumioui`, and writes `global.css`, `tailwind.config.js`,
`babel.config.js`, `metro.config.js` and `nativewind-env.d.ts` — only the
ones you don't already have.

## 2. Load the theme

`init` does this for you: it adds the `global.css` import to your root layout
(`app/_layout.tsx` or `src/app/_layout.tsx` with Expo Router, or `App.tsx`)
and wraps your app in LumioUI's `ThemeProvider`. It also adds a short LumioUI
section to `AGENTS.md`. Skip either with `--no-wire` or `--no-agents`. If
your layout has a shape it can't recognise, it prints what to add:

```tsx
import "./global.css";
import { ThemeProvider } from "./lib/lumioui";

export default function RootLayout() {
  return <ThemeProvider>{/* your app */}</ThemeProvider>;
}
```

Restart the bundler with a clear cache once: `npx expo start -c`.

## 3. Add components

```sh
npx @lumioui/cli add button card input
npx @lumioui/cli add --all --dry-run
```

## 4. Pro components

Create a licence key under Account › License keys (https://lumioui.com/account#keys),
then log in once on each computer:

```sh
npx @lumioui/cli login      # paste your key
npx @lumioui/cli whoami     # which account and plan the key belongs to
npx @lumioui/cli add pro/paywall-sheet
```

In CI, set `LUMIO_LICENSE_KEY` instead; it takes priority over a saved login.

Pro items that need native code warn when `expoGoCompatible: false` —
use a dev build, not Expo Go.

## 5. Verify

```sh
npx @lumioui/cli doctor
npx @lumioui/cli list --pro
```

## 6. Teach your coding agent (optional)

```sh
npx @lumioui/cli skills add lumioui                 # free
npx @lumioui/cli skills add lumio-taste             # Pro design taste
```

Installs skills (https://lumioui.com/skills) for Claude Code (.claude/skills/),
Cursor (.cursor/rules/) and any agent that reads AGENTS.md. List them with
`npx @lumioui/cli skills list`.
