# Skeleton — React Native component for Expo

> Loading placeholders swept by one angled light band across the whole screen.

Loading placeholders where one soft, 20°-angled light band sweeps the whole screen as a single wave (or blocks brighten top-to-bottom, or gently pulse), all from one shared native-driver clock and static under reduce motion. Text, avatar, media, list, feed card and full-screen Nav composites, plus Skeleton.Reveal: the skeleton dissolves, content rises in child by child and the height glides between the two.

- Docs: https://expokit.in/docs/components/skeleton
- Tier: Free
- Also called: skeleton loader, shimmer placeholder, loading placeholder
- Category: Feedback
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- npm dependencies: react-native-svg
- Uses ExpoKit items: kit
- Variants: Shimmer, Card, List, Product Grid, Profile Header, Loading Swap, Wave, Pulse, Nav

## Installation

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

```bash
npx @expokit/cli@latest add skeleton
```

The CLI copies the source into your project (you own the code) and installs react-native-svg.

Import: `import { Skeleton } from "@/components/ui/skeleton";`

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `width / height` | `DimensionValue` | `"100%" / 14` | Block width and height, in points or percent. |
| `radius` | `"sm" \| "md" \| "lg" \| "xl" \| "capsule" \| "full" \| number` | `"sm"` | Corner radius. 'capsule' follows the kit radius for bars; 'full' is always a pill / circle. |
| `variant` | `"shimmer" \| "wave" \| "pulse" \| "static"` | `"shimmer"` | Angled light band sweeping all blocks as one wave, a staggered top-to-bottom brighten, an opacity pulse, or no motion. Every variant is static when reduce motion is on. |
| `color` | `string` | `faint foreground` | Block colour. |
| `children` | `ReactNode` | — | Centred overlay inside the block (e.g. a faint glyph). |
| `Skeleton.Text` | `{ lines, lineHeight, gap, lastLineWidth }` | `3 lines` | Paragraph placeholder with a slightly ragged edge. |
| `Skeleton.Avatar` | `{ size, shape: "circle" \| "rounded" }` | `40, circle` | Avatar placeholder. |
| `Skeleton.Media` | `{ aspectRatio, height, width, glyph, glyphSize, radius }` | `16 / 9, glyph off` | Image block with a faint picture glyph in the centre. |
| `Skeleton.List` | `{ rows, avatarSize, avatarShape, trailing, dividers }` | `4 rows, 44, circle, trailing on` | Rows with an avatar, two lines and a trailing pill. |
| `Skeleton.Card` | `{ media, mediaHeight, header, lines, actions }` | `all on, 168` | Feed post: author row with menu, caption, media and an action bar. |
| `Skeleton.Nav` | `{ header, back, actions, tabs, tabCount, rows, children }` | `header + 4 tabs + 4 rows` | Screen chrome while content loads — app bar, list body, bottom tabs. |
| `Skeleton.Group` | `{ style, children }` | `window` | Frame the shimmer / wave travels across, so blocks inside line up as one wave (Nav and Reveal add one). |
| `Skeleton.Reveal` | `{ loading, skeleton, children, stagger, animateHeight, loadingLabel }` | `—, 3 lines, —, 70, true, "Loading"` | Shows `skeleton` while loading; then it dissolves, top-level children rise in with a stagger and the height glides between the two. |
| `style` | `StyleProp<ViewStyle>` | — | Style for the block (composites apply it to their wrapper). |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |

## Behaviour & accessibility

- **Motion**: Every block reads one shared native-driver clock, so the shimmer band, wave or pulse moves across a Skeleton.Group (or the window) as a single sweep.
- **Reduced motion**: Every variant renders static, and Skeleton.Reveal swaps the skeleton for content instantly.
- **Screen readers**: Placeholder blocks are hidden from screen readers. Skeleton.Reveal is marked busy and exposes a progressbar named by loadingLabel; the content arrives in a polite live region.
- **Platforms**: Plain Animated views plus a react-native-svg gradient, so it runs the same on iOS, Android and web.

## FAQ

### How do I make a skeleton loader in React Native?

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

### Does Skeleton work in Expo Go?

Yes. Skeleton runs in Expo Go on iOS and Android with no development build — its packages (react-native-svg) are all included in Expo Go.

### How do I add Skeleton to my Expo app?

Run npx @expokit/cli@latest add skeleton in your project. The CLI copies the component's source into your app and installs react-native-svg, so the code is yours to change.

### Is Skeleton free?

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

### Can I change how Skeleton 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/skeleton
- 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
