skills/expo-horizon/SKILL.md
Software Mansion's guide for migrating Expo SDK apps to Meta Quest using expo-horizon packages. Use when adding Meta Quest or Meta Horizon OS support to an existing Expo or React Native project. Trigger on: Meta Quest, Horizon OS, Quest 2, Quest 3, Quest 3S, VR app, expo-horizon-core, expo-horizon-location, expo-horizon-notifications, build flavors for Quest, panel sizing, VR headtracking, Horizon App ID, quest build variant, isHorizonDevice, isHorizonBuild, migrate expo-location to Quest, migrate expo-notifications to Quest, Meta Horizon Store publishing, or any task involving running an Expo app on Meta Quest hardware.
npx skillsauth add software-mansion-labs/skills expo-horizonInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Software Mansion's production guide for adding Meta Quest support to Expo apps using the expo-horizon packages.
This skill does not bundle a copy of the docs. For any task below, always webfetch the linked official README or Meta documentation page to get up-to-date installation steps, plugin options, API surface, and feature matrices. This skill only captures the decision tree, critical rules, and non-obvious gotchas that agents routinely miss.
What do you need to do?
│
├── Starting from scratch or adding Quest support to an existing Expo app?
│ └── Follow the "Setup Workflow" below (do NOT auto-install location or
│ notifications packages) and webfetch: expo-horizon-core README
│ ├── Install expo-horizon-core
│ ├── Configure the config plugin (horizonAppId, panel size, supportedDevices)
│ ├── Add quest/mobile build scripts
│ ├── Add runtime device detection (isHorizonDevice, isHorizonBuild)
│ └── Detect expo-location / expo-notifications, then ASK before migrating
│
├── Need location services on Quest?
│ └── Webfetch: expo-horizon-location README
│ ├── Replace expo-location with expo-horizon-location
│ ├── Review the feature support matrix
│ └── Guard unsupported calls (heading, geocoding, geofencing, background)
│
├── Need push notifications on Quest?
│ └── Webfetch: expo-horizon-notifications README
│ ├── Replace expo-notifications with expo-horizon-notifications
│ ├── Configure horizonAppId in expo-horizon-core
│ ├── Use getDevicePushTokenAsync (Expo Push Service is not supported)
│ └── Skip badge counts (not supported on Quest)
│
└── Need to build, run, or publish for Quest?
└── Webfetch: expo-horizon-core README (build variants) + Meta docs below
├── Build variants: questDebug, questRelease, mobileDebug, mobileRelease
├── Meta Quest Developer Hub (device management, sideloading)
└── Meta Horizon Store manifest requirements
Follow these steps in order when the user asks to add Meta Quest support. Do not combine steps 2 and 3 into a single install command — the sibling packages require explicit user confirmation.
Install and configure expo-horizon-core.
npx expo install expo-horizon-core.I'll add the
expo-horizon-coreconfig plugin toapp.json. Please confirm or override each value (press Enter / reply "default" to accept the bracketed default):
supportedDevices[quest2|quest3|quest3s] — pipe-separated Quest devices your app supports (required for Meta Horizon Store submission).horizonAppId[empty] — Meta Horizon application ID. Leave empty unless you plan to use push notifications; required byexpo-horizon-notificationsto issue device push tokens.defaultWidth[1024dp] — Default panel width. Leave blank to omit.defaultHeight[640dp] — Default panel height. Leave blank to omit. If you set width/height, make sure your Expoorientationmatches (use"landscape"for wide panels).disableVrHeadtracking[false] — Settrueto omit theandroid.hardware.vr.headtrackingmanifest entry.allowBackup[false] — Meta recommendsfalsefor sensitive data; settrueonly if you need Android backup in the Quest build.
horizonAppId, defaultWidth, or defaultHeight).quest / mobile build scripts to package.json.npx expo prebuild --clean.Detect existing location / notification packages. Do NOT install the horizon equivalents yet.
package.json.dependencies and devDependencies for expo-location and expo-notifications.For each detected package, ask the user before migrating.
expo-location is found, ask:
"I found
expo-locationin your project. Do you want me to replace it withexpo-horizon-locationso location works on Meta Quest? (Quest has no GPS, heading, geocoding, or geofencing — unsupported calls will need to be guarded withExpoHorizon.isHorizonDevice.)"
expo-notifications is found, ask:
"I found
expo-notificationsin your project. Do you want me to replace it withexpo-horizon-notificationsso push notifications work on Meta Quest? This requires ahorizonAppIdin the core config plugin, uses Meta's push service (not the Expo Push Service), and does not support badge counts orgetExpoPushTokenAsync."
Only after the user confirms, perform the migration for the approved package(s):
npx expo install expo-horizon-location or expo-horizon-notifications).npm uninstall expo-location or expo-notifications).import statements to the horizon package name.horizonAppId is set in the expo-horizon-core plugin config and add expo-horizon-notifications to the plugins array.npx expo prebuild --clean again.ExpoHorizon.isHorizonDevice.If the user declines a migration, leave the original package untouched and note in the summary that feature X (location / notifications) will not work on the quest build until migrated.
Always install expo-horizon-core first. It is required by all other expo-horizon packages and sets up the quest/mobile build flavors that other packages depend on.
Never auto-install expo-horizon-location or expo-horizon-notifications. When adding Quest support, detect existing expo-location / expo-notifications dependencies in package.json and ask the user whether to migrate each one. Install and configure only the packages the user explicitly approves. See the Setup Workflow above.
Use quest build variants only on Meta Quest devices. Running questDebug or questRelease builds on standard Android phones is unsupported and will behave unexpectedly.
Set supportedDevices in the config plugin. This is required for Meta Horizon Store submission. Use pipe-separated values: "quest2|quest3|quest3s".
Run npx expo prebuild --clean after any plugin config change. The config plugin modifies native project files at prebuild time. Stale native projects will not reflect your changes.
Replace imports, not just packages. When migrating from expo-location or expo-notifications, update all import statements to use the new package names (expo-horizon-location, expo-horizon-notifications).
Quest has no GPS, magnetic sensors, or Geocoder. Features like heading, geocoding, reverse geocoding, and geofencing are unavailable on Quest. Guard these calls with ExpoHorizon.isHorizonDevice or ExpoHorizon.isHorizonBuild.
Push notifications require horizonAppId. Without it, getDevicePushTokenAsync will not return a valid token on Quest devices. Use getDevicePushTokenAsync (not getExpoPushTokenAsync) on Quest; send the returned { type: 'horizon', data } token to your backend and deliver via Meta's push service.
isHorizonDevice vs isHorizonBuild. Use isHorizonDevice for runtime hardware checks (physical Quest detection). Use isHorizonBuild for build-time feature gating (which native code was compiled in).
Expo Go is not supported. You must use custom development builds via npx expo prebuild.
Always webfetch the raw markdown (raw.githubusercontent.com/...) if the HTML view does not render the source; the raw URL is the source of truth.
| Topic | Official source | |-------|-----------------| | Repo overview and package list | expo-horizon README | | Install, config plugin options, runtime API, native module access | expo-horizon-core README | | Location migration, limitations, feature support matrix | expo-horizon-location README | | Push notifications migration, token types, feature support matrix | expo-horizon-notifications README | | Example app wiring for all three packages | expo-horizon example README | | Panel sizing guidelines (dp values, orientation, letterboxing) | Meta Panel Sizing | | Meta Horizon Store manifest checklist for publishing | Publish Mobile Manifest | | Device management, casting, sideloading, ADB | Meta Quest Developer Hub | | Server-side push delivery via Meta's push service | Horizon OS push notifications |
development
TypeGPU is type-safe WebGPU in TypeScript. Use whenever the user writes, debugs, or designs TypeGPU code: 'use gpu' shader functions, tgpu.fn, buffers, textures, bind groups, compute and render pipelines, vertex layouts, slots, accessors, and any TypeGPU API. Shader logic and CPU-side resources are tightly coupled - handle both sides here even if the user only mentions one (e.g. "how do I write a shader", "how do I create a buffer"). Trigger on any mention of typegpu, tgpu, "use gpu", TypedGPU, or WebGPU code written using TypeGPU's schema API (d.*, tgpu.*, std.*). Do NOT trigger for raw WebGPU (using GPUDevice/GPURenderPipeline directly without tgpu), WGSL-only questions, Three.js, Babylon.js, or WebGL.
tools
Best practices for integrating and using RNRepo — Software Mansion's infrastructure for pre-built React Native library artifacts that reduces native build times by up to 2×. Use when setting up, configuring, or troubleshooting RNRepo in a React Native or Expo project. Trigger on: 'RNRepo', 'rnrepo', 'slow builds', 'build times', 'prebuilt artifacts', 'prebuilt libraries', '@rnrepo/expo-config-plugin', '@rnrepo/build-tools', 'prebuilds-plugin', 'rnrepo.config.json', 'DISABLE_RNREPO', 'packages.rnrepo.org', 'Maven prebuild', 'CocoaPods prebuild', 'xcframework prebuild', 'prebuild AAR', 'build from source', 'native compilation slow', 'Gradle plugin slow', 'pod install slow', 'CI build times'.
development
Software Mansion's best practices for SVG rendering in React Native apps using React Native SVG. Use when rendering vector graphics, icons, charts, illustrations, or any SVG content. Trigger on: 'react-native-svg', 'SVG', 'vector graphics', 'render icon', 'draw shape', 'chart', 'path', 'Svg component', 'SvgUri', 'SvgXml', 'SvgCss', 'FilterImage', 'SVG filter', or any request to display scalable vector content in a React Native app.
tools
Software Mansion's best practices for rich text in React Native using react-native-enriched and react-native-enriched-markdown. Use when building rich text editors, formatted text inputs, Markdown renderers, or any feature requiring inline styling, mentions, links, structured text editing, or Markdown display. Trigger on: 'rich text editor', 'rich text input', 'text editor', 'react-native-enriched', 'react-native-enriched-markdown', 'EnrichedTextInput', 'EnrichedMarkdownText', 'formatted text input', 'WYSIWYG', 'mentions input', 'text formatting toolbar', 'markdown renderer', 'markdown display', 'render markdown', 'display markdown natively', 'LaTeX math', 'GFM tables', or any request to build rich text editing or Markdown rendering in React Native.