Skip to content
Projetos

wcandillon/react-native-skia

Ver no GitHub

Sobre

Gráficos 2D de alto desempenho, desenvolvidos com WebGPU.

Design e mídia

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
+2
em 7 dias
+7
em 15 dias
+17
em 1 mês
+30

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

React Native Skia

CI npm version

React Native Skia Logo

React Native Skia bring Skia, the rendering engine behind Google Chrome to React Native to React Native.

We use Graphite, Skia’s new GPU backend built on WebGPU (Dawn). It plugs directly into React Native WebGPU, so 2D drawings, 3D scenes, and machine learning models share the same GPU device and the same canvas, at zero cost. The result is a unified GPU runtime for React Native. See Documentation.

React Native Skia has been downloaded more than 60 millions times on npm. And today, it powers the user-experiences of some of the top apps on the App Store and Google Play, including several that have won awards from Apple, Google, and Expo.

Platinum Sponsors

Gold Sponsors

Getting Started

yarn add react-native-skia

Installation instructions

v3 and v2

React Native Skia v3 renders with Graphite, Skia's new GPU backend. It runs on Metal on Apple platforms and on Vulkan on Android.

v3 v2
npm react-native-skia react-native-skia@2
Skia backend Graphite (Vulkan/Metal) Ganesh (OpenGL/Metal)
Architecture multi-threaded single-threaded
Platforms iOS, Android, macOS, Mac Catalyst, tvOS, Web iOS, Android, macOS, Mac Catalyst, tvOS, Android TV, Web
Branch main 2.x
Documentation wcandillon.github.io/react-native-skia wcandillon.github.io/react-native-skia/v2

v2 is still maintained. To upgrade from v2 or from @shopify/react-native-skia, follow the migration guide.

WebGPU

Graphite runs on Dawn, Google's WebGPU implementation. With React Native WebGPU installed alongside it, Skia and WebGPU share the same GPU device and can exchange textures without any copy. This also works with three.js. See the WebGPU documentation.

Contributing

For detailed information on library development, building, testing, and contributing guidelines, please see CONTRIBUTING.md.

Explore projetos relacionados

Carregando…