Architecture
Solid Native separates application semantics (owned by Solid 2) from native rendering infrastructure (accessed through a small, versioned host contract).
System layers#
text
Solid 2 Application (.tsx)
│ createSignal / createMemo / createAsync / TanStack Router
▼
OXC Universal Compiler (@solidnative-dev/compiler + @solidnative-dev/metro)
│ Babel-free TSX transform + composed Metro source maps
▼
Transactional Renderer (@solidnative-dev/renderer)
│ Fine-grained node/prop/text ops coalesced into atomic commits
▼
Versioned Host Contract (@solidnative-dev/host-contract)
│ Platform-neutral commit, event, measurement & worklet protocol
▼
Native Host Backend (@solidnative-dev/fabric-host -> React Native 0.88.1)
│ JSI · Hermes · Fabric ShadowTree · Yoga · UIKit / Android ViewsCore design principles#
- Zero React, zero Fiber: React is never imported or mounted as a component renderer. Solid 2 owns every component lifecycle, signal, async boundary, and disposal scope.
- Atomic native transactions: Reactive writes within a flush coalesce into one versioned host transaction, so native UI never observes half-applied intermediate states.
- Host backend is replaceable: React Native's lower half (Fabric, Yoga, Hermes, JSI, autolinking, TurboModules) is the first backend—kept behind
@solidnative-dev/host-contractand verified by automated boundary gates. - Visible, app-owned native projects:
sn creategenerates standardios/andandroid/projects you own and can inspect directly in Xcode and Android Studio. - Deterministic first, hardware verified: Every runtime contract is proven in-memory first (
@solidnative-dev/testing) and then qualified in Release mode on physical iOS and Android devices.