# Orb Reveal — React Native component for Expo

> Drag a liquid-glass orb up: it shows your title through the lens, then fountains glass marbles into a heart.

An onboarding hero built around a thick liquid-glass orb. Hold it and it swells while a deep blue smile of light glows through it; drag it up and it shrinks into a glass button, showing your title through the lens on the way — magnified in the middle, mirrored around the bevel, with a rainbow fringe — then glass marbles fountain out of it into a heart. Drag it back down and the marbles float away.

- Docs: https://expokit.in/docs/components/orb-reveal
- Tier: Pro (ExpoKit Pro plan)
- Also called: orb animation, reveal animation, Skia shader reveal
- Category: Motion
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- npm dependencies: @shopify/react-native-skia, react-native-reanimated, react-native-worklets, expo-haptics
- Uses ExpoKit items: kit
- Variants: Onboarding, People

## 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 |
| --- | --- | --- | --- |
| `headline` | `string` | `'A new era of…'` | Copy shown before the reveal. |
| `title` | `string` | `'Meet Wabi.'` | The line the lens uncovers. |
| `subtitle` | `string` | `'The first personal…'` | Lines under the title. |
| `hint` | `string` | `'Swipe up to enter'` | Faint hint under the resting orb. |
| `images` | `string[]` | — | Image URIs for the marbles (app icons, avatars). |
| `emoji` | `string[]` | `24 emoji` | Marble pictures when there are no images, each on a bright gradient. |
| `count` | `number` | `52` | Marbles in the heart (max 60), plus a trail of specks. |
| `glowColors` | `[string, string]` | `blue, violet` | The glow while you hold the orb. |
| `background` | `string` | `theme background` | Page colour. |
| `footer` | `ReactNode` | — | Fades in after the reveal: sign-in buttons, a CTA. |
| `revealed` | `boolean` | — | Controlled state. |
| `defaultRevealed` | `boolean` | `false` | Uncontrolled initial state. |
| `onRevealChange` | `(revealed: boolean) => void` | — | The orb settled in a new state. |
| `style` | `StyleProp<ViewStyle>` | `flex: 1` | Root style; give it a screen or a tall card. |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |

## Behaviour & accessibility

- **Hold**: The orb swells and lifts, a blue-violet smile of light glows through it and the headline fades.
- **Drag**: Drag up past halfway (or flick) to reveal; drag the small orb down to go back. A quick tap toggles; a hold or a drag back to the start stays put.
- **Lens**: Two Skia shaders refract the page under the orb and the title the lens uncovers: magnified middle, mirrored bevel, red/blue split at the edge.
- **Marbles**: Fountain out of the button on arcs, pop to size and settle into a heart, then drift. Going back down, they float off the top.
- **Copy**: The title rides with the orb. It and the footer appear as the orb settles and stay until it is most of the way back down.
- **Haptics**: A tick when you pick the orb up and a medium impact on reveal.
- **Reduced motion**: The orb snaps between states and the marbles appear in place.
- **Web**: Needs CanvasKit loaded (LoadSkiaWeb); without it the revealed copy and footer are shown.

## FAQ

### How do I make an orb animation in React Native?

Use ExpoKit's Orb Reveal, a Pro component: with ExpoKit Pro, the ExpoKit CLI copies a ready-made orb animation 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 Orb Reveal work in Expo Go?

Yes. Orb Reveal runs in Expo Go on iOS and Android with no development build — its packages (@shopify/react-native-skia, react-native-reanimated, react-native-worklets, expo-haptics) are all included in Expo Go.

### How do I add Orb Reveal to my Expo app?

With ExpoKit Pro, add it with the ExpoKit CLI: it copies the component's source into your app and installs @shopify/react-native-skia, react-native-reanimated, react-native-worklets, expo-haptics, so the code is yours to change. The install command is on this page for Pro members.

### Is Orb Reveal free?

Orb Reveal is part of ExpoKit Pro. With a Pro plan, log the CLI in once and it installs the full source into your app.

## More

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