Skip to content

Commit d81c602

Browse files
authored
fix(🗿): first Skia Graphite pre-release (#3813)
1 parent 0980c41 commit d81c602

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

‎README.md‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,15 @@ For detailed information on library development, building, testing, and contribu
2323
## Graphite
2424

2525
Skia has two backends: Ganesh and Graphite. Ganesh is the default backend.
26-
If you want to experiment with Graphite, you can enable it by building Skia with `SK_GRAPHITE=1 yarn build-skia`.
26+
Graphite is available as an experimental preview in the `@next` distribution channel:
27+
28+
```sh
29+
yarn add @shopify/react-native-skia@next
30+
```
31+
32+
**This is highly experimental and not recommended for production use.**
2733
Skia Graphite requires Android API Level 26 or above.
2834

35+
If you prefer to build Skia yourself with Graphite support, you can do so with `SK_GRAPHITE=1 yarn build-skia`.
2936
React Native Skia automatically detects Graphite via a marker file included in the prebuilt libs.
3037

‎apps/docs/docs/getting-started/installation.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,20 @@ The `jestEnv.js` will load CanvasKit for you and `jestEnv.js` mocks React Native
132132
You can also have a look at the [example app](https://github.com/Shopify/react-native-skia/tree/main/apps/example) to see how Jest tests are enabled there.
133133

134134

135+
## Graphite (Experimental)
136+
137+
Skia has two backends: Ganesh (default) and Graphite. An experimental preview of Graphite is available in the `@next` distribution channel:
138+
139+
```sh
140+
yarn add @shopify/react-native-skia@next
141+
```
142+
143+
:::warning
144+
145+
Graphite support is highly experimental. Skia Graphite requires Android API Level 26 or above.
146+
147+
:::
148+
135149
## Playground
136150

137151
We have example projects you can play with [here](https://github.com/Shopify/react-native-skia/tree/main/apps).

0 commit comments

Comments
 (0)