Getting Started with React Native Skia
React 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.
Related posts
- 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.
- 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.
- The Future of React Native Graphics: WebGPU, Skia, and Beyond
Shopify Engineering easyNoviceReact 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.
- Accelerating Mobile App development at Zalando with Rendering Engine and React Native
Zalando Engineering mediumAdeptZalando is incrementally migrating its separate iOS and Android apps to React Native by reusing Rendering Engine, its React-based web framework whose "renderers" bundle data fetching, caching, observability and tracking into components. React Native ships as a package: an npm "Entry Point" is consumed both by a standalone developer app and by a native SDK exposing a simple view-factory interface. Native interop goes through turbo modules plus injected protocols, which developers can mock. UI is shared with web through react-strict-dom and StyleX, with Metro platform-specific files and compat APIs covering cases one shared implementation can't handle.
- Making Your React Native Gestures Feel Natural
Shopify Engineering mediumAdeptDraggable UI in React Native feels more natural when gesture end-handling accounts for release velocity, not just finger position. Using the Shop app's bottom Sheet as an example, adding a multiplied `velocityY` to the final position lets quick flicks open or close the sheet. Replacing a fixed 600 ms timing animation with `withSpring` makes the settle animation respect distance and momentum. Dividing drag distance when pulling past the open position adds rubber-band resistance that signals the sheet can't go further.