# Dot Loader — React Native component for Expo

> 91 dot loaders — 50 AI states, curve trails, pixel glyphs and grids — from one prop.

91 loaders built from tiny dots. 50 AI states — a globe turning in 3D for thinking, a lens over a globe for researching, signals crossing a neural net for reasoning, a bug wiggling its legs for debugging, a torus rolling for learning, a check drawing in for verifying — plus 20 glowing curve trails (rose curves, Lissajous, lemniscate, spirograph, cardioid), 12 pixel glyphs and 9 grid patterns. Every pattern is one function of time, sampled once and played on the native driver; labels get ticking trailing dots. Scene Loader (Pro) adds 24 3D showpieces on the same engine.

- Docs: https://expokit.in/docs/components/dot-loader
- Tier: Free
- Also called: ai loader, thinking loader, dot matrix loader, agent loading
- Category: Loaders
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- Uses ExpoKit items: kit
- Variants: All, Spinners, Ai States, Curves, Grids, Pills, Pixel Status, Pixels, Assistant Reply, Agent Steps, Sizes

## Installation

Run once per project: `npx @expokit/cli@latest init` (shared theme + KitProvider). Then:

```bash
npx @expokit/cli@latest add dot-loader
```

The CLI copies the source into your project (you own the code).

Import: `import { DotLoader } from "@/components/ui/dot-loader";`

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant` | `AI state ("thinking" \| "searching" \| "parsing" \| "writing" \| "compiling" \| "analyzing" \| "updating" \| "verifying" \| "designing" \| "recording" \| "organizing" \| "sorting" \| "streaming" \| "listening" \| "deploying" \| "finishing" \| "connecting" \| "uploading" \| "calculating" \| "exploring" \| "summarizing" \| "syncing" \| "encrypting" \| "loading" \| "learning" \| "fetching" \| "translating" \| "saving" \| "planning" \| "drafting" \| "building" \| "testing" \| "researching" \| "exporting" \| "importing" \| "reasoning" \| "debugging" \| "generating" \| "rendering" \| "merging" \| "training" \| "transcribing" \| "optimizing" \| "indexing" \| "mapping" \| "scanning" \| "filtering" \| "publishing" \| "processing" \| "downloading") \| curve \| `pixel-${glyph}` \| `grid-${pattern}`` | `"thinking"` | 91 patterns. curve: rose-two, rose-three, rose-four, rose-five, rose-orbit, bloom-five, bloom-seven, bloom-nine, lissajous, lissajous-knot, lemniscate, hypotrochoid, epitrochoid, cardioid, astroid, deltoid, butterfly, trefoil, heart, spiral. glyph: thinking, searching, writing, code, asking, loading, heart, check, download, upload, sparkle, signal. pattern: ripple, diagonal, rain, snake, spiral, checker, scan, cross, rings. DOT_LOADER_VARIANTS lists them all. |
| `size` | `"sm" \| "md" \| "lg" \| "xl" \| number` | `"md"` | 24 / 40 / 64 / 96pt, or any number. Dots scale with it. |
| `color` | `string` | `theme foreground` | Dot colour. |
| `accent` | `string` | `theme accent` | Highlight dots: the cursor, check mark, lens, active strand. |
| `speed` | `number` | `1` | Speed multiplier. |
| `label` | `string` | `variant name` | Accessibility label; shown on screen when labelPosition is set. |
| `labelPosition` | `"none" \| "right" \| "bottom"` | `"none"` | Show the label beside or under the dots, with trailing dots that tick. |
| `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

- **Motion**: One looping clock per loader; every dot's position, opacity and scale is pre-sampled from the pattern and interpolated on the native driver. Properties that never change stay static.
- **Reduced motion**: The loop stops and each loader holds one clear frame (the check drawn, the pyramid built, the glyph showing); the label shows a still ellipsis.
- **Screen readers**: Announced as a progress bar with state busy and your label (default: the variant, e.g. "Thinking"); the dots are one accessible element.
- **Platforms**: Plain React Native Animated views — iOS, Android, Expo Go and web, no native setup and no SVG.

## FAQ

### How do I make an ai loader in React Native?

Use ExpoKit's Dot Loader: run npx @expokit/cli@latest add dot-loader in your Expo or React Native project and it copies a ready-made ai loader into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.

### Does Dot Loader work in Expo Go?

Yes. Dot Loader runs in Expo Go on iOS and Android with no development build.

### How do I add Dot Loader to my Expo app?

Run npx @expokit/cli@latest add dot-loader in your project. The CLI copies the component's source into your app, so the code is yours to change.

### Is Dot Loader free?

Yes. Dot Loader is free: its full source is on this page and the CLI installs it without an account.

### Can I change how Dot Loader 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 component. The code lives in your project, so you can also edit anything directly.

## More

- Live preview, variants and code: https://expokit.in/docs/components/dot-loader
- 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
