Skip to content
Development
Skill

/hz-react-native-expo

Build and iterate on React Native apps for Meta VR / Horizon OS with Expo. Covers the fast dev loop — install Expo Go from the Meta Horizon Store, run a Metro dev server, load its bundle URL on the headset, and get live Fast Refresh — plus the full development-build path with

BOOST
From plugin
meta-vr
20036 skills1 MCP
Install
$ npx -y skills add meta-quest/agentic-tools --skill hz-react-native-expo --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/hz-react-native-expo

Context preview

The summary Claude sees to decide when to auto-load this skill.

Build and iterate on React Native apps for Meta VR / Horizon OS with Expo. Covers the fast dev loop — install Expo Go from the Meta Horizon Store, run a Metro dev server, load its bundle URL on the headset, and get live Fast Refresh — plus the full development-build path with

SKILL.md

hz-react-native-expo.SKILL.md
name: hz-react-native-expo
license: Apache-2.0
description: "Build and iterate on React Native apps for Meta VR / Horizon OS with Expo. Covers the fast dev loop — install Expo Go from the Meta Horizon Store, run a Metro dev server, load its bundle URL on the headset, and get live Fast Refresh — plus the full development-build path with the expo-horizon-core config plugin, prebuild, Quest product flavors, and the Horizon-forked libraries (location, notifications, IAP). Use when the user wants to build or run a Meta VR app in React Native/Expo, load a JS bundle URL on a headset, set up expo-horizon-core, or get live reload on device. Build path: Standard Android with React Native; use hz-quest-verify-first if the path is unclear."
allowed-tools: Read, Bash(npx:*), Bash(npm:*), Bash(yarn:*), Bash(expo:*), Bash(metavr:*), Bash(hzdb:*)

React Native on Meta VR with Expo

Build React Native apps for Meta VR / Horizon OS using Expo — the tooling Meta recommends for React Native on Meta VR. This skill focuses on the **development loop**: get your JS running on the headset and iterating with live reload, then graduate to a full Meta VR development build when you need native Horizon features.

A Meta VR RN app renders as a **2D panel** in Horizon OS. This is Android app development, so the headset-setup, ADB, and device basics live in other skills — this skill references them instead of repeating them (see [`hz-new-project-creation`](../hz-new-project-creation/SKILL.md) for developer-mode and dashboard setup, [`metavr-cli`](../metavr-cli/SKILL.md) for device/ADB commands, and [`portal`](../portal/SKILL.md) for the Android build toolchain).

Two ways to run on the headset

There are two runtimes, and picking the right one is the most important decision. Both load a JS **bundle URL** from a Metro dev server and Fast-Refresh on save; they differ in what native code is available.

| | **Expo Go** (fastest loop) | **Development build** (full control) | |---|---|---| | What it is | Prebuilt app from the Horizon Store | A dev client *you* build, with your native config | | Install | One tap from the Store (link below) | `expo run:android --variant questDebug` | | Loads a bundle URL | Yes | Yes | | Live Fast Refresh | Yes | Yes | | `expo-horizon-core` config (App ID, panel size) | ❌ not applied (prebuild-time) | ✅ applied | | Horizon-forked native libs / custom native modules | ❌ | ✅ | | Best for | Pure-JS + standard Expo module iteration | Real Meta VR apps: App ID, panel size, notifications, location, IAP |

**Rule of thumb:** start in **Expo Go** for the tightest UI/logic loop, then move to a **development build** the moment you add `expo-horizon-core`, a Horizon-forked library, or any custom native module. The dev build is *also* a dev client, so the bundle-URL + Fast-Refresh loop is identical — you just rebuild native occasionally.

Prerequisites

  • **Headset in developer mode**, USB (or Wi-Fi) debugging on, and visible to

`metavr device list`. Full walkthrough: [`hz-new-project-creation`](../hz-new-project-creation/SKILL.md) and [`metavr-cli`](../metavr-cli/SKILL.md).

  • **Node.js 20+**, and the Expo CLI via `npx expo` (no global install needed).
  • **metavr** for device/ADB/screenshots/logs: `metavr --version` (standalone binary on PATH; or `npx -y metavr --version` with no install).

Verify the device first:

metavr device list          # or: npx -y metavr device list

Path A — Fast loop with Expo Go + a bundle URL

The quickest way to see your app on the headset. Nothing to build.

1. Install Expo Go on the headset

Open the Meta Horizon Store on the headset (or the web store) and install **Expo Go**:

> https://www.meta.com/experiences/expo-go/25322546364000780/

You can also open that link in the Meta Horizon phone app or on the web and click **Install** to push it to your headset.

2. Start the Metro dev server (bundle URL)

In your Expo project on your dev machine:

npx expo start                 # Metro on :8081; prints a QR + an exp:// bundle URL
# If the headset is on a different network / LAN is blocked:
npx expo start --tunnel        # bundle URL over the internet (exp://...exp.direct)

Metro prints a **bundle URL** like `exp://<LAN-IP>:8081` (LAN) or an `exp://<id>.exp.direct` URL (tunnel). That URL is what Expo Go loads.

3. Open the bundle URL in Expo Go

Three ways, easiest first:

  • **Deep-link it (no typing)** — routes straight to Expo Go:
  metavr adb shell am start -a android.intent.action.VIEW -d "exp://<LAN-IP>:8081"
  • **Type it in Expo Go** — launch Expo Go on the headset, choose **Enter URL

manually**, and type the `exp://…` URL with the controller keyboard.

  • **Scan the QR** — if you have Expo Go / the camera handy.

4. Edit and watch it live

Save a file → **Fast Refresh** repaints the headset with no reload. Press `r` in the Metro terminal (or use the in-app dev menu) for a full reload. This is the "automatic updates / live display of changes" loop — the headset is just another preview surface, like a browser tab for the web.

**Expo Go caveats** (details in [`references/dev-loop.md`](references/dev-loop.md)):

  • **SDK must match.** Expo Go runs only projects whose Expo SDK matches the

installed Expo Go. `npx expo install --fix` realigns deps to the project's *current* SDK (it doesn't switch SDKs); to fix a mismatch, upgrade the project's Expo SDK or install the matching Expo Go build.

  • **Config-plugin settings don't apply.** `horizonAppId`, panel size, product

flavors, etc. are prebuild-time and are ignored in Expo Go.

  • **No Horizon-forked/custom native modules.** Use a development build (Path B).

Path B — Full setup with expo-horizon-core (development build)

Use this for real Meta VR apps: it sets your Horizon App ID, panel size, and gives you the Horizon-forked native libraries. The result is a **development build** — a dev client you install once that then loads bundle URLs an

Read more
Ships withmeta-vr

Agentic skills and tools for Meta VR and Horizon OS development.

Get the whole plugin

Other skills on meta-vr.