Platform & native
35 readings on platform & native, each with our note on why it matters.The articles are the originals — read them there.
Native modules & the New Architecture
React Native Bridgeless: race conditions with concurrent JS runtimes
Your C++/JSI module keeps process-global state (a cached CallInvoker, a static registry) — Bridgeless overlaps two runtime generations on reload/OTA, so capture the invoker and a per-generation liveness flag at construction, never inside a callback.
A native-module authoring rule extracted from a real op-sqlite crash, and it invalidates an assumption most C++ modules were written under. Under the old bridge a reload was strictly sequential — the outgoing runtime's invalidate() completed before the next generation's install() ran — so process-global module state (a static shared_ptr, a bool flag, a cached CallInvoker) was safe by construction, because only one generation could ever touch it. Bridgeless starts the new RCTInstance BEFORE the old one has finished invalidating and gives the old one only a few seconds to drain, so two runtime generations are genuinely alive at once. The crash: an in-flight SQLite query on a background thread is interrupted by a reload or OTA update and tries to schedule its error back onto the JS thread, by which time the new generation has already overwritten the global invoker — so the callback either runs on the wrong invoker or destroys JS objects off the JS thread. The fix generalizes past SQLite: give each generation its own liveness flag (a shared_ptr<atomic<bool>> that install() allocates and invalidate() flips for THAT generation only), and have every host object COPY the invoker and the liveness pointer into members at construction rather than reading the globals inside the callback — bind generation identity at creation, check it at run time. Fixed every update hook at once with no call-site changes.
What It Actually Takes to Migrate Discord to React Native's New Architecture
Migrating to the New Architecture: the flip is ~14% of the work and rendering/layout ~47%, so budget for the long tail and check three changed contracts — measure() origin in modals, view flattening cancelling gestures, interop 'Manager' lookups.
The post-flip half of a New-Architecture migration, which the official docs don't cover, told through one app at Discord's scale (Android first, then iOS). The headline is the ticket breakdown on the way back to parity: rendering/layout/visual 47%, crashes & stability 16%, build/infra/the migration ITSELF 14%, performance 13%, input (keyboard/gesture) 11% — i.e. flipping the switch is about one seventh of the work, and the rest is the app behaving differently under the new renderer. Three broken implicit contracts, each worth knowing before you hit it: (1) MEASUREMENT ORIGIN — old arch measured a view against the window, Fabric measures against its Yoga root, and a modal is its own root, so the same measure() returns different numbers inside a modal; the tell is a constant offset that looks like the height of something else. (2) VIEW IDENTITY — Fabric's view flattening is re-evaluated on every commit, and accessibility props are among those that force a real host view, so toggling accessibilityElementsHidden mid-gesture can swap the gesture's backing view and cancel it silently (onFinalize never runs); collapsable={false} pins it. (3) NATIVE LOOKUP — the legacy-interop layer finds a view manager by appending 'Manager' to the component name; a class named without that suffix misses the fast path, falls back to a main-thread-synchronous module creation while holding a registry write lock, and deadlocks against an in-flight animation's read lock. The advice that generalizes: budget for INVESTIGATION, not fixes (every story above ended in one prop, one helper, or a rename — the cost was finding it); the problems cluster where your app touches native (measurements, refs, gestures, imperative calls, interop-layer components) while pure React code comes through untouched; instrument before optimizing; and fix upstream rather than patch locally, because a local patch is tech debt every future upgrade must re-check.
An early look at Expo Modules 2.0
You author Expo Modules — 2.0 replaces the result-builder DSL with annotated plain Swift/Kotlin (@ExpoModule/@JS/@Record); it is in beta on iOS and Android in SDK 58 (docs in progress), and both APIs coexist so you can migrate a function at a time.
The first-party walkthrough of the API change behind this entry's Expo Modules 2.0 note: each 1.0 DSL component folded into ordinary Swift (Function/AsyncFunction → a method marked @JS, Property → a var, a record → a struct, an event → one typed callable property), with the migration path (both APIs coexist in one module; the expo-migrate-module agent skill does the Swift side and lists what it couldn't). Also states the mechanism behind the speedup — build-time signatures replace 1.0's per-call reflection — and what is NOT done yet: views, Android, generated TypeScript declarations, and documentation.
Inside the new JNI layer in Expo Modules 2.0
The Android half of Expo Modules 2.0: Kolibri, a JNI library Expo built to replace fbjni, stays close to raw JNI and lets modules switch off per-call safety work (e.g.
the exception check for methods that cannot throw). Vendor-measured: calls into C++ objects 28–51x faster than fbjni, JS objects reach Kotlin 3–5x faster via a binary buffer. Read with the EXPO MODULES 2.0 note — it is why the 'Nitro ~100x vs Expo Modules' claim is stale on Android too.
How to Make Pure JSI Code Faster in React Native (Part 1)
You ship Nitro Modules — the runtime mechanics it compiles down to: HostFunction vs HostObject, the Object+NativeState pattern, stack vs heap, and minimizing JS-to-native crossings, with reproducible Hermes benchmarks.
How JSI bindings actually work at the C++/Hermes boundary — HostFunction vs HostObject, the Object+NativeState pattern Nitro compiles down to, stack vs heap, minimizing JS-to-native crossings — with reproducible Hermes benchmarks. The runtime mechanics under Turbo/Nitro Modules.
Making JSI Faster with More Efficient Data Structures (Part 2)
You ship Nitro Modules — data representation across the JSI boundary (array-of-objects vs flat array vs ArrayBuffer, numeric vs string contracts) can swing performance up to ~30x with no algorithmic change.
How data representation across the JSI boundary (array-of-objects vs flat array vs ArrayBuffer, numeric vs string contracts) can swing performance up to ~30x with no algorithmic change. First-principles guidance for New-Architecture native modules.
How Margelo Helped Discord Improve React Native's New Architecture Performance
You ship Reanimated on the New Architecture — the canonical Fabric jank postmortem: cloneShadowTreeWithNewProps over-cloning the shadow tree plus redundant layout passes for non-layout props, with fixes upstreamed.
Low-level New-Architecture jank postmortem: Reanimated's cloneShadowTreeWithNewProps over-cloning the Fabric shadow tree plus redundant layout passes for non-layout props, with fixes upstreamed. Canonical Fabric / New-Arch internals.
Four Years of React Native Quick Crypto: From Wallets to Node Parity
A four-year native-library architecture case study: wrapping OpenSSL for Node behavior-parity, a sync-first threading model with async escape hatches, the hand-written-JSI to Nitro codegen migration, and security audit as architecture validation.
Generalizable lessons for native-module authors.
The Memory Hermes Can't See: Stale Shadow Nodes in React Native
You debug memory on the New Architecture — Hermes heap snapshots cannot see retained Fabric ShadowNodes (C++ memory pinned by JS wrappers), so a flat JS heap with growing process memory means profile the native side too.
The memory-leak sibling of the Discord jank postmortem above: Fabric ShadowNodes are C++ objects retained via JS wrapper objects, so unmounted views' wrappers can pin whole shadow-tree revisions (amplified by Reanimated's per-frame revision cloning) — and none of it appears in Hermes heap snapshots, because the retained memory sits outside the JS heap. The author's two candidate mitigations (periodic forced GC; per-wrapper setExternalMemoryPressure) are both judged not production-ready — this is debugging awareness, not a shipped fix. (2026-08-05)
Camera, video & real-time media (WebRTC, frame processing, filters)
Building a video call app with filters
You ship WebRTC calling (LiveKit / react-native-webrtc) — don't fork the stack for filters: segment off the hot path, GPU-composite, and inject processed VisionCamera frames into the existing VideoSource; mind YUV conversion and monotonic timestamps.
Architecture deep-dive: real-time RN video-call filters (background blur, virtual backgrounds, Center Stage auto-zoom, live drawing) by injecting processed VisionCamera frames into LiveKit's WebRTC VideoSource without touching encoder/transport/signaling. Covers off-thread segmentation (MediaPipe/Vision), Metal/Skia compositing, YUV↔I420/NV12 conversion, and the monotonic-timestamp + buffer-pooling gotchas.
MoQKit: a native mobile SDK for MoQ on iOS and Android
Architectural intro to Media over QUIC for mobile — the session/namespace/track model, why moq-lite over moq-transport, and where it sits between WebRTC and HLS.
A durable real-time-media transport reference.
What's New in VisionCamera V5?
You ship VisionCamera — v5 is a full Nitro rewrite (Constraints API replaces Formats, ~15x lower call latency) but still stabilizing: adopt pinned-patch with a device-matrix pass; don't linger on frozen v4.
The canonical v5 reference for this entry's default camera pick: the full Nitro rewrite (−3k LOC of hand-written JSI, ~15x lower call latency vs Turbo Modules), the Constraints API replacing Formats, in-memory photo capture, depth/RAW/multi-cam, and modular frame-processor plugins. Read before betting real-time work on v5.
Scanning Barcodes in React Native Apps: The Complete Guide (2026)
You scan barcodes in React Native — pick by the native engine underneath (ML Kit / AVFoundation / VisionKit / ZXing): decoder quirks belong to the engine, not the wrapper. Need one code and no custom UI? A platform scanner call beats mounting a camera view.
The cross-library selection guide the VisionCamera-scoped piece below doesn't cover, and its durable core is the ENGINE MAP: every RN scanning library wraps one of four native engines — Google ML Kit (VisionCamera's Barcode Scanner on both platforms, expo-camera on Android, data-scanner on Android), AVFoundation's AVCaptureMetadataOutput (VisionCamera's Object Output, expo-camera on iOS for most formats), VisionKit's DataScannerViewController (react-native-data-scanner on iOS 16+, expo-camera's launchScanner), and ZXing (which expo-camera bundles on iOS to decode PDF417/Code 39/Codabar). The consequence is the useful part: decoder quirks belong to the ENGINE, not the wrapper, so if ML Kit mis-reads an inverted barcode every ML-Kit-based library does, and iOS reporting UPC-A as EAN-13 shows up in everything built on Apple's APIs. The routing: one code and no custom UI → react-native-data-scanner (one call, no camera view to build); in-app camera with overlays or validation → VisionCamera + the barcode plugin; smallest iOS-only footprint → VisionCamera's Object Output; Expo Go → expo-camera; damaged/dense codes at industrial scale → a commercial SDK. Author bias is explicit (he wrote VisionCamera and data-scanner), and the post corrects a vendor claim that VisionCamera uses VisionKit — it never has. Note react-native-data-scanner is 0.1.2 on npm (verified 2026-08-18): the routing advice is sound, the package is early.
QR and Barcode Scanning in React Native with VisionCamera V5
You ship VisionCamera and scan codes — three APIs (CodeScanner / useBarcodeScannerOutput / frame processors); narrow barcodeFormats and outputResolution for latency, and mind the frame-vs-preview coordinate gotcha.
By VisionCamera's creator: three scanning APIs (CodeScanner / useBarcodeScannerOutput / frame processors), narrowing barcodeFormats and outputResolution for latency, the frame-vs-preview coordinate gotcha, and MLKit vs Apple's native AVCaptureMetadataOutput vs commercial SDKs. The reference for RN code scanning.
On-device storage & persistence
SQLite for React Native, but 5x faster and 5x less memory
The library author walks the JSI/C++ internals that make op-sqlite fast and memory-light — lazy HostObject conversion, std::variant over a custom struct, key-sharing across result rows — with benchmarks.
The mechanics of high-performance JSI SQLite, not API usage.
An Interactive Guide to TanStack DB
Builds the local-first reactive-persistence mental model from first principles — Collections, live queries via differential dataflow, optimistic transactional mutations — contrasting it with request/response fetching.
The shift to sync-engine thinking.
Why We Did Not Move MMKV Writes to a Worklet: The Serialization Cost
You ship MMKV with worklets — moving writes into a worklet does not offload them: serialization at the boundary cost the same ~29.56ms as the write, and passing a whole store object cost ~132ms. Measure the boundary cost before moving work off the JS thread.
A measured NEGATIVE result, which is why it is worth holding: MMKV writes are synchronous and block the JS thread, so moving them into a worklet looks like free relief. It isn't. Moving just the write left the ~29.56ms cost intact — it simply moved from the write into createSerializableString, because copying the string into the worklet costs what the write did. Sending the raw store object instead was worse (~132ms, cloning every property one at a time via cloneObjectProperties/clonePlainJSObject), and Bundle Mode changed nothing (~136ms), confirming the cost tracks data-structure size rather than compilation. The durable rule: a worklet is not a free way to move work off the JS thread — you pay serialization at the boundary, so measure that cost first and send the smallest payload you can.
Native UI extensions — Live Activities, widgets, App Clips, portals
Apple Home Screen Widgets with Expo (Continuous Native Generation)
Generating native Apple widget targets from Expo via CNG — pbxproj manipulation to keep SwiftUI targets editable yet outside /ios, App Group / NSUserDefaults data sharing, CSS-to-colorset conversion.
The foundational mechanism behind Expo Targets / expo-widgets.
Using Live Activities in a React Native App
End-to-end Live Activities in RN — the ActivityKit Attributes/ContentState model, a separate widget-extension target for Lock Screen + Dynamic Island, a native module bridging JS↔Swift, and the HTTP-refresh vs APNs-push tradeoff.
Platform constraints that outlast any single library.
How we built the v0 iOS app (React Native + Expo)
Production case study of making RN feel truly native on iOS: Liquid Glass via @callstack/liquid-glass, native menus via Zeego/UIMenu, patching RCTUITextView for platform-correct text behavior, ~1,000 lines of keyboard logic on react-native-keyboard-controller (see RB-E-KEYBOARD), synchronous New-Arch measurements, LegendList — and the share-types-and-logic-not-UI lesson.
What 'native feel' actually costs and where the wins come from.
Keyboard handling & avoidance (React Native)
The Go-To Guide for Understanding Keyboards in React Native (Part 1)
You ship no keyboard library — core KeyboardAvoidingView snaps on Android (no per-frame insets) and breaks under Android-15 edge-to-edge; react-native-keyboard-controller is the modern parity fix.
Why keyboards behave differently per platform — iOS scheduled animation vs Android per-frame WindowInsetsAnimationCallback insets, why core KeyboardAvoidingView snaps on Android, Android-15 edge-to-edge breakage, and when to reach for KeyboardAvoidingView / KeyboardAwareScrollView / KeyboardStickyView.
In-app purchases & payments
Cross-platform subscription state: sharing entitlements between Android and iOS
Why unifying subscription entitlements across iOS/Android is hard — Apple signed-JWS vs Google purchase-token REST, HTTPS notifications vs Cloud Pub/Sub, subscription groups vs base plans/offers — and the four-part DIY architecture.
The root reason IAP libraries/services exist.
Building the RC Fortress: protecting payments against outages
A resilience case study for keeping purchases working when subscription backends fail — cached paywall snapshots, temporary offline entitlements, buffered request log/replay — with tradeoffs made explicit.
The realities of subscription infra regardless of library.
Brownfield integration & micro-frontends
React Native in .NET MAUI: A Practical Brownfield Integration Guide
Your native host is a .NET MAUI app — react-native-brownfield covers it via a C# binding project over the same native binding; the cost is mostly NuGet coexisting with npm/CocoaPods/Gradle, plus Shell-to-RN navigation.
The MAUI half of react-native-brownfield, which the entry's other rows do not cover: a .NET binding project wrapping the same native binding the iOS/Android paths use (XCFramework on iOS, AAR on Android), surfaced as idiomatic C#. Walks the part that actually costs time — making NuGet coexist with npm/CocoaPods/Gradle — then wiring MauiProgram.cs / AppDelegate / MainActivity lifecycle events, and handing navigation back and forth between MAUI's Shell and React Native. Relevant when the existing app is MAUI, which is common where the org already standardized on C#.
Migration to React Native in 2026 Starts With a Delivery Question
You are weighing a native→React Native migration — pick by where the risk can sit: brownfield preserves installed-app continuity but you own a runtime boundary; greenfield is cleaner but must reproduce auth, deep links and push identity before cutover.
The decision that comes BEFORE this entry's tooling: brownfield or greenfield. The framing is that the trigger for migrating is usually delivery cost (two implementation tracks, two review paths, two QA cycles, two release trains), and that the choice between paths is really a choice of where the risk sits during the transition. Brownfield keeps the native apps as the production host and moves one flow at a time — it preserves installed-app continuity (session state, secure storage, push identity, subscriptions, app extensions) and leaves a native fallback, at the cost of owning a runtime boundary (packaging, host integration, native↔RN navigation, shared state) while maintaining two surfaces at once. Greenfield builds a replacement and ships it under the same bundle ID — less architectural drag and a codebase agents work better in, but continuity becomes the risk: auth, deep links, push tokens, app groups, persisted data and analytics all have to survive the cutover, and mature products fail on accumulated behavior rather than on screens. The third option is the useful one: start greenfield with a fixed checkpoint and a REAL brownfield fallback, where the checkpoint tests product continuity (authenticated flows, analytics, accessibility, performance, at least one meaningful native boundary) and not just how fast screens get rebuilt.
Rebuilding the Doctolib Homepage from Webview to Native
Production case study migrating a 115M-hits/month homepage from WebView to native RN with a BFF-driven section architecture (~50% TTI improvement, measurable conversion gains).
Durable brownfield-integration lessons.
Unlocking Expo Updates in an Isolated Brownfield Architecture with SDK 55
The capability-flip walkthrough behind this entry's note: running EAS/Expo Updates inside an isolated brownfield embed (XCFramework packaging via `npx brownfield package:ios`), which had been a hard limitation of embedded-RN architectures.
Read when you need OTA on brownfield screens.
React Native production lessons from React Universe Meetup x Zalando
Four hard-won production patterns — brownfield-handoff metrics (Meaningful Render), video-feed jank sequencing, native API bridging, on-device LLM hardware variance.
Real-world scale-stage RN guidance.
Games, 3D & AR/VR — interactive / real-time rendering
React Native Skia — For Us, For You, and For Fun
The foundational architecture of react-native-skia: JSI for direct C++/JS communication, a custom React reconciler powering the declarative API, and Reanimated-driven animation.
The enduring design under RN's 2D GPU drawing — the base for RN games and interactive visuals.
Alternatives to React Native (cross-platform frameworks)
We Built the Same App in KMP and React Native — Here's What We Found
The controlled comparison this entry needed: identical unoptimized apps on 6 devices measuring size/startup/RAM/CPU/frames.
KMP wins Android decisively (8x smaller, 2-4x startup, ~50% less RAM — no JS runtime); iOS converges, with RN using 3-4x LESS memory (UIKit rendering vs KMP's resident Skia). Credible precisely because an RN consultancy published the unflattering Android numbers; ends on the right frame — performance is one input, DX and ecosystem are others.
Under the hood of MDN's new frontend
Architecture case study replacing a React SPA with server-side templating + Lit web components (per-component CSS, Declarative Shadow DOM, Rspack).
An authoritative counter-perspective on when NOT to ship a React SPA.
From React to native web with nanotags: a migration that saved 100 KB
When a marketing/content site doesn't need React — migrating to Web Components (Custom Elements + Astro + nanostores, ~3KB vs ~63KB), with the boilerplate/accessibility trade-offs nanotags addresses.
Durable do-you-even-need-React reasoning.
Upgrading Checkout Blocks app to Polaris web components
You ship React inside a byte-budgeted embed (checkout widget, third-party extension) — react-reconciler alone is ~89KB, so swapping to Preact via @preact/compat is usually the largest single cut available.
The PREACT data point the other do-you-need-React readings lack, and the rare case where a hard number forces the decision: Shopify's Checkout Blocks extensions (rendered on a third of all customized checkouts) had to fit a 64KB gzip per-bundle limit enforced by the 2026-01 remote-dom CLI, and were at 300–356KB raw / ~100–112KB gzipped. Dropping react-reconciler by moving React→Preact was the single biggest win at ~89KB and got them most of the way to budget; replacing liquidjs (~73KB) with an in-house parser and dayjs with a scoped date utility closed the rest, while markdown-to-jsx was kept by aliasing onto @preact/compat. Transferred bundle sizes fell 40–85% across the five extensions. Also a credible AI-assisted-migration pattern: an in-house agent skill did the mechanical React→Preact and component swaps against a parity test suite built from thousands of real merchant configurations, with engineers on the judgment calls.
How We Rewrote 130K Lines from React to Svelte in Two Weeks
A migration case study contrasting React's virtual-DOM overhead with Svelte's compiled reactivity for an AI-driven browser UI, including the LLM-migration ruleset that kept the Svelte idiomatic.
A concrete framework-tradeoff data point for teams weighing leaving React.
SolidJS 2.0 for React Developers: A First Look
A long-time React developer's map of Solid 2.0 onto React habits: components run once and signals wire straight to DOM nodes (count() is a call, not a value — the call is the subscription), so dependency arrays and memoization disappear; async computations return promises the graph suspends on; deterministic batching and the renames a React developer trips on.
Written against the 2.0 BETA (2026-07, updated 07-18) and its verdict is 'don't drop React, but watch closely' — Solid 2.0 has since gone stable (2026-11-16), so re-check API names against the Solid docs.