Applies to every preview on the site.
Installation
One command copies the source into your app — you own the code and can change anything.
After you add the file, import it like any local component:
import { Spinner } from "@/components/ui/spinner";Or add it with the CLI (installs any missing peers):
Usage
useKit(). Wrap your app in <KitProvider accent="#6366f1" radius={14}> to re-skin every component at once.Like this? There's a lot more in Pro Pro
12 full screens built from the same kit — install them the same way.
Props
| Prop | Type | Default |
|---|---|---|
| variant Indicator style — 12 loaders. "line" is an indeterminate bar size × 4 wide (override with style.width). | "ring" | "dots" | "bars" | "pulse" | "orbit" | "bounce" | "wave" | "grid" | "typing" | "arc" | "square" | "line" | "ring" |
| size 16 / 24 / 36 / 52pt, or any number. Every variant scales from it. | "sm" | "md" | "lg" | "xl" | number | "md" |
| color Indicator colour. | string | theme accent |
| speed Speed multiplier. | number | 1 |
| label Accessibility label; shown on screen when labelPosition is set. | string | labels.loading |
| labelPosition Show the label beside or under the spinner, with an animated ellipsis. | "none" | "right" | "bottom" | "none" |
| track Faint guide behind the motion: full circle (ring, orbit, arc), rail (line) or ghost bars (bars). | boolean | false |
| style Style for the root view (the square, or the spinner + label row/column). | StyleProp<ViewStyle> | — |
| className Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. | string | — |
Customization
You own the source file — tune appearance with props (no fork required for most tweaks). For brand-wide colours and radius, wrap your app in KitProvider; for one-off looks, use the style props below.
Design theme
Open Design theme on the live preview — accent, corner radius and font update every variant instantly (same as KitProvider in your app).
Variants
Pick the Variants chip above the preview, or set variant=… — "ring" | "dots" | "bars" | "pulse" | "orbit" | "bounce" | "wave" | "grid" | "typing" | "arc" | "square" | "line".
Style props
React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).
- variant
- "ring" | "dots" | "bars" | "pulse" | "orbit" | "bounce" | "wave" | "grid" | "typing" | "arc" | "square" | "line" · default "ring"Indicator style — 12 loaders. "line" is an indeterminate bar size × 4 wide (override with style.width).
- size
- "sm" | "md" | "lg" | "xl" | number · default "md"16 / 24 / 36 / 52pt, or any number. Every variant scales from it.
- color
- string · default theme accentIndicator colour.
- style
- StyleProp<ViewStyle>Style for the root view (the square, or the spinner + label row/column).
- className
- stringTailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides.
Map tokens from your design system on Bring your design system or read Theming for KitProvider and NativeWind / Uniwind setup.
Behaviour & accessibility
- Motion
- Every variant loops on the native driver (rotation, scale, translate, opacity); the ring's arc-length breathing is the only SVG prop animation and runs on its own JS-driven node.
- Reduced motion
- Loops stop and each loader holds a still, clearly-busy frame (staggered dots, a lit diagonal, a mid-line segment); the ring keeps a plain steady spin.
- Screen readers
- Announced as a progress bar with state busy and your label (default "Loading"); the visual is one accessible element.
- Platforms
- Pure React Native Animated plus react-native-svg — iOS, Android, Expo Go and web, no native setup.
Source
FAQ
How do I make a loading spinner in React Native?
npx @expokit/cli@latest add spinner in your Expo or React Native project and it copies a ready-made loading spinner into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.Does Spinner work in Expo Go?
react-native-svg) are all included in Expo Go.How do I add Spinner to my Expo app?
npx @expokit/cli@latest add spinner 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 Spinner free?
Can I change how Spinner looks?
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.