---
title: "Agent Loading States"
description: "Shimmers, cycling reasoning text and a progress timer."
documentation: "https://beui.dev/react-native/loading-states"
markdown: "https://beui.dev/react-native/loading-states.md"
---

# Agent Loading States

> Shimmers, cycling reasoning text and a progress timer.

React Native component for Expo, from beUI Native. Group: AI agents. Variants: 3.

## Install

Set up beUI Native once per app first: https://beui.dev/docs/native-setup.md

```bash
npx beui-native add loading-states
```

Or copy the source by hand and install its libraries:

```bash
npx expo install react-native-reanimated react-native-worklets
npm install uniwind tailwindcss
```

## Links

- Source: https://github.com/starc007/beui-native/tree/main/src/components/loading-states
- Registry JSON with every file: https://beui.dev/native/r/loading-states
- Open in Expo Go: exp://u.expo.dev/93a3a95c-6dc2-4adb-b57c-efbecf859f25/--/loading-states?runtime-version=exposdk%3A58.0.0&channel-name=production
- Web version: https://beui.dev/components/agents/loading-states.md

## README

### Agent Loading States

Native port of [beUI Agent Loading States](https://beui.dev/components/agents/loading-states): three ways to show that an agent is working.

```tsx
import { AgentProgress, ReasoningText, ThinkingShimmer } from "./src";

<ThinkingShimmer>Thinking…</ThinkingShimmer>
<ReasoningText variant="cascade" />
<AgentProgress label="Churning" initialSeconds={12} />
```

#### ThinkingShimmer

A highlight sweeps across a muted status line every 1800 ms. It wraps `TextShimmer`, so it takes the same props.

#### ReasoningText

Cycles through `phrases` every `interval` ms (1800 by default, never under 600), adding an ellipsis to each. A terminal line spinner sits in front; replace it with `indicator`, or pass `null` to hide it. The longest phrase reserves the width, so nothing beside it moves.

- `cascade`: the old letters roll up and away as the new ones spring in from below, 25 ms apart.
- `swap`: the whole phrase fades and rises 3 points over 200 ms.
- `scramble`: characters cycle through random glyphs and settle left to right.

#### AgentProgress

A 3×3 glyph whose cells pulse in reading order, 140 ms apart, over a 1550 ms cycle, beside a label and an elapsed timer. The timer counts up from `initialSeconds` every 100 ms while `running`, or shows `elapsedSeconds` when you control it. Past a minute it reads `2m 31.6s`.

#### Accessibility

- ReasoningText is a polite live region whose label is the current phrase, without the ellipsis.
- AgentProgress is a progress bar named "Churning, in progress". The timer isn't announced on every tick.
- Reduced motion, or `disableAnimation`, keeps every state readable: the shimmer stays muted, phrases swap without movement, and the glyph cells only fade.

Copy this directory, `components/text-animation/text-shimmer.tsx` and `text-scramble.tsx`, `hooks/use-presence.ts`, `hooks/use-reduced-motion.ts`, `primitives/cascade-text.tsx`, `primitives/glyph-row.tsx`, `styles/motion.ts`, and the semantic tokens in `styles/theme.css`.
