High-performance React Native Graphics using Skia
High-performance React Native Graphics using Skia
High-performance 2d Graphics for React Native using Skia Checkout the full documentation here.
React Native Skia brings the Skia Graphics Library to React Native. Skia serves as the graphics engine for Google Chrome and Chrome OS, Android, Flutter, Mozilla Firefox and Firefox OS, and many other products.
For detailed information on library development, building, testing, and contributing guidelines, please see CONTRIBUTING.md.
Skia has two backends: Ganesh and Graphite. Ganesh is the default backend.
Graphite is available as an experimental preview in the @next distribution channel:
yarn add @shopify/react-native-skia@nextThis is highly experimental and not recommended for production use. Skia Graphite requires Android API Level 26 or above.
If you prefer to build Skia yourself with Graphite support, you can do so with SK_GRAPHITE=1 yarn build-skia.
React Native Skia automatically detects Graphite via a marker file included in the prebuilt libs.
iOS: <Canvas opaque> has no effect; MetalWindowContext forces the CAMetalLayer non-opaque (2.12.0)
[Web] Canvas backing store ignores CSS transforms, scaled canvases render blurry
Unmounted Canvas keeps its last image resident until the UI runtime GCs (recorder and picture are never disposed)
Canvas flickers when parent view zIndex changes to 0 [Android]
fix(): Multiple SkCanvas methods crash or drop arguments for optional/null parameters (drawPatch, drawAtlas, drawImageRect)
Android 17: TextureView presents only a fraction of rendered frames (updateTexImage drain from #1980 no longer works); SurfaceView opt-in proposal
Packaged fonts show as system fonts on iOS but not Android
Android: every non-opaque Canvas leaks one android.view.Surface
Canvas permanently stops being presented after a few mounts (iOS + Android)
iOS Fabric: first tap on a Touchable is lost while keyboard is open — regression between 2.2.12 and 2.4.21, still present in 2.11.0