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
<View role="main" style={{ padding: 16 }}>
<Text role="heading" aria-level={1}>
Hello from React Native
</Text>
<Text href="/about">About</Text>
</View>
<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>
What does a React Native app need to be a good web app?
Parity first
Every react-native export that ships behaves as it does on iOS and Android.
Semantic HTML
The role prop picks the element. A View with role="main" is a <main>, and href makes an <a>.
Atomic CSS
Each style declaration becomes one CSS class, and every element with the same declaration shares it.
Server rendering
Render the whole page on the server with its style tags, then hydrate it in the browser.
SEO tags
Set the title, the meta tags, Open Graph, and JSON-LD of each page with Head.
Tested in a real browser
Every component and API has tests that run in Chromium, not in a simulated DOM.
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.
Parity
@rootnative/webThe React Native components and APIs.
Web
@rootnative/web/domBrowser features that native doesn't have, for example <Head>.
Server
@rootnative/web/serverHelpers that render the page and its styles on the server.
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.
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.