How Six Major Platforms Differ Under the Hood: Android, iOS, Vue, React, Flutter, React Native
1. Android
Layer stacking: Linux kernel → HAL (hardware abstraction layer) → system runtime layer (ART, Bionic libc, OpenGL ES/Vulkan, Media) → application framework layer (AMS/PMS/WMS, View system, ContentProvider) → application layer.
Core mechanisms
- Runtime: Zygote process preloads then forks app processes; .dex goes through ART's AOT + JIT mixed compilation into oat, with tiered compilation based on usage heat.
- IPC: Binder does a single copy (mmap maps to kernel buffer), client/server architecture; AMS, WMS and other system services rely on it for cross-process calls.
- Threading: Main thread runs a Looper + MessageQueue + Handler message loop; Choreographer aligns to VSYNC to drive the three-stage pipeline of input → animation → measure/layout/draw.
- Rendering: View tree goes through Measure / Layout / Draw; drawing commands go to RenderThread and are finally composited by SurfaceFlinger. Measure often runs twice because of wrap_content and weight, a long-standing performance concern.
- Update paradigm: imperative, mutable UI. Compose switched to declarative: composition → layout → drawing, with a Snapshot state system and SlotTable storage; recomposition invalidates local scopes, close to "single-pass layout".
Architecture paradigm: four components + Intent decoupling, MVVM/MVI + Repository + unidirectional data flow, Hilt/Koin injection, Coroutines/Flow for concurrency, Gradle multi-module + feature modules for physical isolation.
2. iOS
Layer stacking (official four layers): Core OS (Darwin/XNU, filesystem, security) → Core Services (Foundation, CoreFoundation, CoreLocation) → Media (Core Graphics, Core Animation, AVFoundation) → Cocoa Touch (UIKit, SwiftUI) → application layer.
Core mechanisms
- Runtime: Objective-C uses dynamic dispatch (objc_msgSend goes through method cache and message forwarding); Swift is mostly static dispatch, protocols use witness tables, generics use specialization; both can be mixed.
- Process: each app lives in its own sandbox process, communicating via Mach ports / XPC; apps can't directly access each other's data (more closed than Android's shared storage).
- Threading: main thread driven by RunLoop; GCD is a queue model rather than a thread model (serial/concurrent queues + QoS scheduling to a thread pool); Swift Concurrency uses async/await + actors to isolate mutable state.
- Rendering: UIView is just a proxy for CALayer; actual rendering happens in a separate Render Server (backboardd) process; Core Animation commits the layer tree and it is composited there — a structural reason iOS animations stay smooth.
- Memory: ARC inserts reference counting at compile time; no GC pauses, at the cost of manually handling cycles with weak/unowned.
Architecture paradigm: MVC is the historical main line; real projects commonly use MVVM / Coordinator / unidirectional data flow (Combine or AsyncSequence); modularization uses SPM / CocoaPods; SwiftUI is a declarative system based on value types and protocols, uses Environment for injection, and holds state hierarchically with @State/@StateObject.
3. Vue
Three layers: reactivity system (Reactivity) + runtime (Runtime) + compiler (Compiler). This is the fundamental division between Vue and React — Vue has a compiler participating in optimization, React relies on runtime scheduling.
Core mechanisms
- Reactivity: Vue 3 uses Proxy to intercept reads/writes, effects collect dependencies (track/trigger); a component render function is an effect, and data changes automatically re-run it.
- Updates: virtual DOM + compile-time PatchFlag marks dynamic nodes; Block Tree removes static nodes from diff, giving "targeted updates"; updates go into a microtask queue (nextTick) and are batched, so one event loop flushes only once.
- Components: Options API or Composition API (setup); props go down, emit goes up; composables are the reuse unit, replacing mixins.
Architecture paradigm: official family bucket with clear responsibilities — Vue handles views, Vue Router handles routing, Pinia handles state, Vite handles build, Nuxt handles server-side. Layering usually is view / business composables / data access, with provide-inject for cross-layer dependencies.
4. React
Three layers (React 18): Scheduler + Reconciler + Renderer. The renderer is pluggable (react-dom, react-native, custom renderers), which is why React can run one core across multiple targets.
Core mechanisms
- Fiber: splits rendering work into linked-list Fiber nodes; double buffer (current/workInProgress) alternates; render phase is interruptible and resumable, commit phase is one-time and not interruptible.
- Scheduling: Lane model assigns priorities, time slicing cuts long tasks into 5ms slices; high-priority updates (like input) can interrupt and discard older low-priority work.
- Hooks: function components + closures; state sits on the Fiber node and matches by list order, so order must not change and they can't be inside conditionals.
- Update flow: setState → schedule → render (interruptible diff) → commit (DOM changes + layout effects) → passive effects.
Architecture paradigm: React only provides the core; everything else comes from the community — Router, state (Redux/Zustand), build (Vite), meta-frameworks (Next.js). Unidirectional data flow + immutable data, container/presentational separation, Suspense brings async data into the rendering flow.
5. Flutter
Three layers: Framework (Dart: Widgets / Material / Cupertino / Rendering / Animation / Painting) + Engine (C++: Skia or Impeller, Dart VM, text layout, platform channels) + Embedder (platform native shell handling window, lifecycle, input).
Core mechanisms
- Three trees: Widget (immutable config) → Element (lifecycle and state host) → RenderObject (layout and paint). Widgets are cheap to rebuild every frame; Elements hold state; RenderObjects do the actual work.
- Layout: constraints pass down, sizes pass up; one-pass traversal, unlike Android's possible two measurements; the cost is a widget cannot depend on child size unless it uses LayoutBuilder to break the rule.
- Rendering: self-drawn engine, no system widgets; it goes directly to Skia Canvas to produce GPU commands; Impeller uses precompiled shaders to solve first-frame jank. This gives pixel-identical visuals across three platforms, but the larger binary size and "non-native" feel are the cost.
- Threads: UI thread runs the Dart main isolate, Raster thread rasterizes, IO thread decodes; isolates share no memory, only messages via SendPort.
- Hot reload: JIT incremental compilation + Element tree state retention; code changes don't lose page state.
Architecture paradigm: official state management only offers InheritedWidget/Provider; community is split among Riverpod / Bloc / GetX; native interop goes through MethodChannel / EventChannel / FFI; layering usually is presentation / domain / data + Repository.
6. React Native
Core mechanisms: must be split into old and new architecture or conclusions go stale.
Old architecture (Bridge)
- Three threads: JS thread, Shadow thread (computes Yoga layout), UI main thread.
- Communication is all through the Bridge: messages serialize to JSON and asynchronously batch across; async means one crossing equals one delay, and list scrolling gets stuck most easily.
- Layout uses Yoga (Flexbox implemented in C++), also single-pass constraint solving, same idea as Flutter. Rendering uses native views — RN renders real UIButtons, not self-drawn.
New architecture (stable now)
- JSI: C++ layer directly holds references to JS objects, can synchronously call host capabilities; Bridge serialization bottleneck is removed.
- Fabric: new renderer; Shadow Tree implemented in C++ and shared by JS and native, supporting concurrent rendering and priority interruption.
- TurboModules: native modules lazy-load + type safety; Codegen generates C++ glue code from TS definitions.
- Hermes: default engine, precompiled bytecode, fast startup and low memory, at the cost of no JIT.
Architecture paradigm: component model is fully isomorphic with React (Hooks, unidirectional data flow); differences only lie in host components and native modules; projects typically pair React Navigation + Redux/Zustand, and still need Kotlin/Swift native modules as a fallback.
Side-by-side comparison
| Dimension | Android | iOS | Vue | React | Flutter | RN (new arch) |
|---|---|---|---|---|---|---|
| Rendering ownership | system View + SurfaceFlinger | UIKit + separate Render Server | browser DOM | browser DOM (swappable renderer) | self-drawn Skia/Impeller | native views + Fabric |
| UI paradigm | imperative → Compose declarative | UIKit imperative / SwiftUI declarative | declarative + reactive tracking | declarative + Fiber scheduling | declarative three trees | declarative + React isomorphism |
| Update mechanism | message loop per frame | RunLoop + CA transactions | Proxy dependency collection, microtask batch flush | Lane priorities + interruptible rendering | single-frame build + element reuse | JS scheduling + Fabric commit |
| Layout | two-pass Measure/Layout | AutoLayout / manual frames | CSS layout engine | CSS layout engine | single-pass constraint propagation | Yoga single-pass Flexbox |
| Threads/IPC | Binder + main thread Looper | Mach/XPC + GCD queues | single-thread event loop (Worker) | same as left | UI/Raster/IO + isolate | JS/UI/native, JSI synchronous |
| Ecosystem concentration | official framework + Jetpack | official framework + SPM | official family bucket | core + community choice | unified official SDK | community-first, native fallback |
One-line summary
- Android / iOS: system-level layering + strong constraints on IPC and rendering pipeline; high performance ceiling but tied to platform.
- Vue / React: both are "declarative + diff update"; Vue moves optimization forward to the compiler (compile-time marking + precise dependency tracking), React pushes optimization back to runtime scheduling (interruptible, priority-based); the choice is essentially "compile-time determinism vs. runtime flexibility".
- Flutter / RN: two cross-platform routes — Flutter self-draws for unity, with controllable consistency and performance but detached from native widgets; RN renders native, feels native but depends on bridge efficiency; the new architecture uses JSI + Fabric to fill the asynchronous bridge bottleneck.