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.

text
signal write -> affected computation -> atomic Fabric commit -> native mount

At 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#

ApproachUI HostApp RuntimeTrade-off
Solid NativeReal iOS & Android views (Fabric)Solid 2 (fine-grained, zero React)Technical Preview; focused native package set
React NativeReal iOS & Android views (Fabric)React / FiberMature ecosystem, but component re-rendering & Fiber overhead
NativeScriptReal iOS & Android viewsNativeScript runtime & pluginsSeparate runtime and plugin ecosystem
Capacitor / WebViewEmbedded browser DOMWeb frameworkWebView UI feel instead of native controls & stacks
FlutterCustom Skia / Impeller canvasDartStrong cross-platform polish, but leaves TypeScript & Solid