Why Solid Native
Solid Native exists for teams who want TypeScript + JSX, real iOS and Android platform views, and Solid 2's fine-grained reactive model—without putting React or Fiber between their app and the native host.
Why this architecture?#
Fine-grained signals fit native UI directly#
In Solid, a component runs once to build its reactive graph. When a signal changes, only the exact native property or text leaf reading that signal updates—no virtual DOM diffing, no re-running parent components, and no manual useMemo/useCallback dance.
signal write -> affected computation -> atomic Fabric commit -> native mountAt the same time, Solid's batching ensures native views never see half-applied intermediate writes: all mutations in a flush coalesce into one atomic Fabric shadow-tree transaction.
Solid owners manage native lifecycles#
Native apps own long-lived resources—screens, tabs, camera sessions, UI-thread animations, subscriptions, and in-flight requests. Solid's ownership tree (onCleanup, nested scopes) ties every native resource cleanly to the exact component or route that created it.
Reusing React Native's lower half—without React#
Building a native layout engine, JS VM integration, autolinking, and native-module ecosystem from scratch takes years. Instead, Solid Native reuses the proven lower half of React Native behind a small, versioned @solidnative-dev/host-contract:
- Reused: Fabric ShadowTree, Yoga layout, Hermes, JSI, Codegen, TurboModules, CocoaPods/Gradle autolinking, and real UIKit/Android views.
- Replaced: React, Fiber, Babel transforms (replaced with a Babel-free OXC compiler), and React-coupled navigation/state wrappers.
Why TanStack Router for navigation?#
Mobile apps need type-safe route params, loaders, blockers, deep links, and URL state just like modern web apps—paired with genuine UINavigationController stacks, swipe-back gestures, native tabs, and sheets. @solidnative-dev/navigation connects @tanstack/router-core directly to native screen containers without React Navigation.
How it compares#
| Approach | UI Host | App Runtime | Trade-off |
|---|---|---|---|
| Solid Native | Real iOS & Android views (Fabric) | Solid 2 (fine-grained, zero React) | Technical Preview; focused native package set |
| React Native | Real iOS & Android views (Fabric) | React / Fiber | Mature ecosystem, but component re-rendering & Fiber overhead |
| NativeScript | Real iOS & Android views | NativeScript runtime & plugins | Separate runtime and plugin ecosystem |
| Capacitor / WebView | Embedded browser DOM | Web framework | WebView UI feel instead of native controls & stacks |
| Flutter | Custom Skia / Impeller canvas | Dart | Strong cross-platform polish, but leaves TypeScript & Solid |