The Future of React Native Graphics: WebGPU, Skia, and Beyond
React Native WebGPU, built on Google's Dawn, lets React Native apps run Three.js, React Three Fiber, TSL shaders, ComputeToys compute shaders and TensorFlow.js on Metal (iOS) and Vulkan (Android) with no changes, which collapses the separate OpenGL and Metal backends into one. Lessons from that work fed back into React Native Skia. Moving from a mutable C++ scene graph (SkiaDOM) to an immutable, Fabric-reconciler display list made animation up to 50% faster on iOS and nearly 200% faster on Android, while fixing 98% of reported Android crashes. Skia also gained macOS, tvOS and headless Node.js targets, and the experimental Skia Graphite backend previews automatic threading and two-way 2D/3D texture composition.
Related posts
- React Native Skia: A Year in Review and a Look Ahead
Shopify Engineering mediumAdeptReact Native Skia moved from an alpha with JS-thread bottlenecks to a declarative architecture called Skia DOM that executes Skia drawings entirely on the UI thread. The redesign targeted two problems: blocking the JavaScript thread delayed first frames, and thousands of JSI allocations per drawing added noticeable overhead. Skia DOM, implemented in C++ on iOS/Android and JS on the Web, keeps a source of truth and recomputes only changed parts. A single custom React renderer targets iOS (Metal), Android and Web (OpenGL, via CanvasKit/WebAssembly) and Node.js. Cross-platform end-to-end image tests and type-checked docs support quality, and 2023 plans cover worklet-driven animations, Reanimated integration and Skia paragraph text layout.
- React Native Skia—For Us, For You, and For Fun
Shopify Engineering easyNoviceReact Native Skia brings Google's Skia 2D graphics library to React Native, giving iOS, Android and eventually web apps consistent drawing primitives such as shaders, image filters, SVG, path operations, vertices and text layout. It is built on the new JSI architecture, which exposes Skia directly through C++ rather than asynchronous bridge messages, and its API mirrors Flutter's so that web support can later come through CanvasKit (Skia's WebAssembly build). A declarative layer uses the React Reconciler to diff drawing state and pass only changes to Skia. Animations run on a dedicated thread like Reanimated 2, with a direct connector to Reanimated for gesture-driven drawings.
- Getting Started with React Native Skia
Shopify Engineering mediumAdeptReact Native Skia (@shopify/react-native-skia) exposes Google's Skia 2D graphics engine to React Native, giving a cartesian canvas with shapes, paths, shaders and image filters that go beyond what View and react-native-svg handle well. The tutorial covers drawing primitives and paths (via SVG strings or imperative commands like addArc), animating drawings by passing Reanimated shared values directly to Skia components, driving them with Gesture Handler pan gestures on the UI thread for 60-120 FPS interaction, and applying built-in effects like Blur and DashPathEffect. Skia also works in the browser through React Native Web.
- Five years of React Native at Shopify
Shopify Engineering easyNoviceAfter five years, Shopify has migrated all its mobile apps to React Native, with each team choosing its own migration timing, and reports sub-500ms P75 screen loads, over 99.9% crash-free sessions, and an end to iOS/Android feature-parity work. Hot reloading and TypeScript let engineers move between web and mobile, but native developers and native code remain essential for hardware features, widgets, watch apps and long-running background sync such as Point of Sale offline data. The downsides are flaky debugging, labor-intensive framework upgrades (handled by a rotating group) and heavier reliance on third-party libraries, mitigated with Dependabot and code scanning. Shopify is now extracting shared libraries for identity, monitoring and performance measurement after initially trading consistency for migration speed.
- Leveraging Rust and the GPU to render user interfaces at 120 FPS
Zed hardMasterZed's GPUI framework hits 120 FPS by rendering the editor UI like a video game: rather than a general-purpose 2D vector renderer (Pathfinder proved too slow), it uses dedicated GPU shaders for a small set of primitives such as rectangles, shadows, text, icons and images, all described as data on the CPU and drawn with instanced rendering. Rounded rectangles come from a signed distance function evaluated in a Metal fragment shader. Drop shadows follow Evan Wallace's approximation, which pairs a closed-form erf-based Gaussian convolution on one axis with a few samples along the other. Text uses OS shaping via CoreText, with a per-frame cache of text-font pairs so only changed text gets reshaped.