One
React framework for web and native
One is a cross-platform React framework that runs entirely as a single Vite plugin. It lets you build web and React Native apps from a single codebase while easily achieving 90+ Lighthouse performance scores on the web.
Why One
Most cross-platform solutions sacrifice web performance for native compatibility. One takes a different approach: it optimizes for both platforms without compromise.
- Web-first performance - SSG, SSR, and SPA modes with aggressive bundle optimization
- True native feel - Full React Navigation integration for native gestures and transitions
- Single codebase - Share routes, data, and UI between platforms
Key Features
File-system Routing
Routes are defined by your file structure with full TypeScript support:
Platform Divergence
Use file suffixes to diverge per platform while sharing the same route:
Render Modes
Choose how each page renders:
- Static (SSG) -
+ssg.tsxsuffix for pre-rendered pages - Server (SSR) - Server-rendered on each request
- Client (SPA) - Client-only rendering
Mix modes freely within the same app.
Typed Loaders
Data loading with full type inference:
Native Navigation
Wrap React Navigation for native tab bars, headers, and gestures:
Performance
One achieves web performance through:
- LCP optimization - Defer JS until after first paint
- Aggressive code splitting - Per-route and per-platform bundles
- Partial hydration - Only hydrate interactive components
Getting Started
Or add to an existing Vite project:
Learn More
Edit this page on GitHub.