Learn Once, Write for VR: A React Native Showcase for Meta's HorizonOS

Authors
Jan Jaworski
Software Engineer
@
Callstack

React Conf 2025 is on, and what’s the best way to celebrate?

By creating a demo React Native app for Meta Quest (running Horizon OS), of course! This will show how easy it is for developers to use their existing cross-platform mobile and desktop development skills to build VR apps for Quest.

Last year, we showcased that React is actually pretty good at handling spatial interfaces. This year, since learned that Meta built Instagram for Meta Quest with React Native, we couldn’t help but try it out and see what the experience is like on this platform.

Let’s dive into it!

What’s Horizon OS?

Horizon OS is the operating system for Meta VR headsets. It’s built on the Android Open Source Project, so developers familiar with Android already have a strong foundation.

Because of this shard base, porting existing apps is relatively simple  and usually requires only minor adjustments for the VR form factor.

Why did we create the React Native showcase app?

We built a showcase app for Horizon OS to demonstrate that React Native’s “learn once, write anywhere” principle still holds true a decade after its launch. Our goals were to:

  • Evaluate the setup process and compare it with mobile development workflows.
  • Show how React Native can be applied to VR development.
  • Provide a real example of cross-platform code reuse in action.

What’s different from mobile platforms?

VR introduces new interaction models and technical requirements compared to mobile:

  • Input: Instead of touch, VR uses controllers or hand tracking.
  • Environment: Apps exist in 3D space, can be moved around and resized, and need new UX patterns.
  • Development: Running and debugging often requires a physical headset.
  • Native library support: HorizonOS does not have Google Play Services, so some Android native libraries may not work out of the box.

Prerequisites

To build for Horizon OS, you’ll need some platform-specific setup:

  • Android tools: If you’ve set up with Android setup before, this should feel familiar. Follow the official docs.
  • React Native environment: If you don’t already have React Native installed, follow these docs.

Goals we set out to achieve

  • Prove React Native works on Meta Quest VR headsets and is a viable solution for mixed reality apps, just like with our previous work on Vision Pro.
  • Use the same battle-tested tools and codebases that developers already trust, changing only what’s necessary for VR.
  • Validate that React Native apps can deliver native-level performance in VR’s higher demand environment. Test populate React Native libraries for VR compatibility.
  • Ensure debugging and profiling tools (React Native DevTools, Rozenite, etc.) remain productive.

Did we reach our goals?

Well, see for yourself below!

Our showcase app demonstrates camera integration, audio playback, and link sharing using popular React Native libraries such as React Native Vision Camera, React Native Track Player, and React Native SVG.

Under the hood, we’re using native navigation through React Navigation and Reanimated to achieve beautiful and performant animations.

Also, check out the source code on GitHub.

And stay tuned for more resources on building with React Native for Meta Horizon.

Insights

Learn more about Virtual Reality

cover

Oct 15Article

Multi-Window React Native Apps With the Meta VR Layout SDK

Build multi-window React Native apps for Meta Quest with the Meta VR Layout SDK. Learn shared state, fallbacks, positioning, and simulator testing.

cover

Dec 8Article

Mobile vs. VR: Key Differences in Features, UI, and UX

Explore how VR reshapes layout behavior, typography, spacing, accessibility expectations, and interaction patterns in React Native.

cover

Dec 4Live Stream

React Native on Meta Quest: What We Learned About Building for VR

See Meta Quest used as a practical dev setup and watch the team build and test React Native features directly inside a VR workspace.

cover

Nov 26Podcast

Bringing React Native to VR on Meta Quest

Learn how Meta Quest uses React Native for 2D panels in 3D spaces, why AOSP matters, and how developers can bring existing RN apps to VR with minimal friction.

cover

Nov 20Article

How to Release a React Native App on the Meta Horizon Store

Learn how to build, submit, and publish your React Native app on the Meta Horizon Store.

cover

Nov 6Article

What You Can Build With React Native on Meta Quest

Get React Native app ideas for Meta Quest, inspired by Meta's $1.5M developer competition. Explore VR/MR concepts for meditation, games, and social apps.

cover

Oct 30Article

Using Expo Libraries on Horizon OS: A Guide to Compatibility

Learn how to use Expo libraries for React Native development on Meta's Horizon OS. This guide covers compatibility differences, what works out-of-the-box, and what requires specific alternatives like expo-horizon-core and expo-iap.

cover

Oct 22Article

Getting Started With Expo on Meta Quest

Start building React Native apps for Meta Quest with Expo. This guide details the setup using Expo Go for fast iteration and explains how to use development builds for full native capabilities on Met Horizon OS.

cover

Mar 19Tutorial

The Hard Way vs. The React Native AI SDK Way: Stop Writing Custom Modules for Every Model

Learn how React Native AI uses a unified provider model to switch between cloud and on-device LLMs without rewriting application logic, enabling reliable AI experiences online and offline.

cover

Mar 12Tutorial

Build Smarter Apps: Tool Calling & AI Orchestration Explained

Learn how on-device models in React Native can call tools, interact with external APIs, and return structured outputs you can use directly in application logic.

cover

Mar 5Tutorial

MLC LLM + React Native: On-Device AI Without the Pain

Learn how to run third-party on-device LLMs in React Native using MLC LLM. Choose your models, run them efficiently across platforms, and keep a unified JavaScript API with React Native AI.

cover

Feb 24Tutorial

Intelligent Fallbacks with Apple Intelligence in React Native

Learn how to use Apple’s built-in Foundation Models in React Native apps, reduce memory usage, and enable fast, fully on-device AI with React Native AI Apple.

cover

Feb 10Tutorial

What Is the React Native AI SDK? A Complete Intro & Quickstart

Learn why on-device AI matters for React Native apps, how local LLMs behave offline, and what problems React Native AI is designed to solve from day one.

cover

Jan 29Tutorial

Implementing an Android TurboModule with Kotlin

Learn how to implement a React Native TurboModule on Android, from the TypeScript spec and Codegen to the Kotlin implementation and package registration.

cover

Jan 19Tutorial

Working with Different Threads in Swift TurboModules

Learn how JavaScript, native module, background, and main threads interact in React Native TurboModules, and how to use GCD queues to run async work safely in Swift.

cover

Jan 9Tutorial

How to Add Type-Safe Constants to Swift TurboModules

Learn how to expose typed, immutable constants from a Swift TurboModule using Codegen, and get full end-to-end type safety between native and JavaScript.

cover

Dec 30Tutorial

Adding Event Emitters to Your TurboModule in Swift

Learn how to emit native events from a Swift TurboModule and subscribe to them in JavaScript, including proper memory management and Codegen integration.

cover

Dec 22Tutorial

Writing Your First TurboModule in Swift

Learn how to build a fully working TurboModule in Swift, integrate it with Codegen, and bridge it through Objective‑C inside an Expo app.