# Scene Loader — React Native component for Expo

> 24 3D showpiece loaders — black hole, tesseract, pendulum wave, Newton's cradle — from one prop.

24 showpiece loaders in 3D, built on the Dot Loader engine with real perspective, depth and occlusion: a black hole whose shadow eclipses the far side of its disk while the rest lenses over the top, a tesseract turning through the fourth dimension, a twelve-pendulum wave, Newton's cradle, comets racing round the Lorenz attractor, an hourglass that flips, fireworks, a jellyfish, Saturn, a gyroscope. Each loops seamlessly on the native driver.

- Docs: https://expokit.in/docs/components/scene-loader
- Tier: Pro (ExpoKit Pro plan)
- Also called: 3d loader, black hole loader, tesseract loader, physics loader
- Category: Loaders
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- Uses ExpoKit items: dot-loader
- Variants: Gallery, Render Job, Inline

## Installation

This component 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 |
| --- | --- | --- | --- |
| `variant` | `"torus" \| "torus-knot" \| "dna" \| "galaxy" \| "black-hole" \| "atom" \| "tesseract" \| "morph" \| "wormhole" \| "pendulum-wave" \| "newtons-cradle" \| "lorenz" \| "tornado" \| "fireworks" \| "jellyfish" \| "heartbeat" \| "radar" \| "sunflower" \| "solar-system" \| "mobius" \| "gyroscope" \| "hourglass" \| "swarm" \| "saturn"` | `"black-hole"` | Which scene plays. SCENE_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**: Each scene is one function of time, pre-sampled and played on the native driver by the same engine as Dot Loader. Fast scenes (the pendulum wave, the heart monitor) sample more finely so sharp motion stays smooth.
- **Depth**: Points are projected with perspective: near dots land wider apart, larger and brighter. Planets, suns and black holes hide what passes behind them.
- **Reduced motion**: The loop stops and each scene holds one clear frame.
- **Screen readers**: Announced as a progress bar with state busy and your label (default: the scene, e.g. "Black hole").
- **Platforms**: Plain React Native Animated views — iOS, Android, Expo Go and web, no Skia or SVG.

## FAQ

### How do I make a 3d loader in React Native?

Use ExpoKit's Scene Loader, a Pro component: with ExpoKit Pro, the ExpoKit CLI copies a ready-made 3d loader 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 Scene Loader work in Expo Go?

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

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

With ExpoKit Pro, add it with the ExpoKit CLI: it copies the component's source into your app, so the code is yours to change. The install command is on this page for Pro members.

### Is Scene Loader free?

Scene Loader 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 Scene 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/scene-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
