Skip to main content
Early alpha

React Native, as a real web app.

A standalone web runtime for React Native apps. You write react-native. The browser gets semantic HTML, atomic CSS, server rendering, and SEO tags.

  • React 19
  • TypeScript
  • ESM only
  • MIT
App.tsxYou write
<View role="main" style={{ padding: 16 }}>
  <Text role="heading" aria-level={1}>
    Hello from React Native
  </Text>
  <Text href="/about">About</Text>
</View>
index.htmlThe browser gets
<main class="rn-view rn-hst5or">
  <h1 class="rn-text">Hello from React Native</h1>
  <a href="/about" class="rn-text">About</a>
</main>
<style>.rn-hst5or{padding:16px} …</style>
How it works

One plugin. Three entry points.

Your app imports react-native. The Vite plugin resolves that name to @rootnative/web. Import the web and the server entry only in code that runs on the web.

01

Parity

@rootnative/web

The React Native components and APIs.

02

Web

@rootnative/web/dom

Browser features that native doesn't have, for example <Head>.

03

Server

@rootnative/web/server

Helpers that render the page and its styles on the server.

Set up

Point react-native at the package.

Add the plugin to vite.config.ts and one declaration file for TypeScript. The rest of your app stays the same code that runs on iOS and Android.

Read the installation guide
vite.config.ts
import { rootnative } from '@rootnative/web/vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'

export default defineConfig({
  plugins: [react(), rootnative()],
})

Your React Native code, in the browser.

It's an early alpha. The Status page lists what ships today and what's planned.