Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/skia-2-15-5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"victory-native": minor
---

Raise the `react-native-skia` peer dependency floor from 2.15.1 to 2.15.5 (the latest 2.x release). 2.15.3–2.15.5 bring React Native Web improvements (one shared WebGL context for all canvases, and fixes for canvases in `<Activity>` and StrictMode) and an Android fix for canvases inside a `Modal`. If your app pins `react-native-skia` below 2.15.5, upgrade it with `yarn add react-native-skia@^2.15.5`. Skia 3 is still not supported.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ https://github.com/FormidableLabs/victory-native-xl/assets/12721310/20bada2d-990

## Installation

Requires React 19+, React Native 0.79+ with the New Architecture, Skia 2.x (2.15.1+), Reanimated 4.x (4.1.7+), Worklets 0.7+, and Gesture Handler 2 or 3. Choose compatible Reanimated and Worklets versions for your React Native version using the [Reanimated compatibility table](https://docs.swmansion.com/react-native-reanimated/docs/guides/compatibility/).
Requires React 19+, React Native 0.79+ with the New Architecture, Skia 2.x (2.15.5+), Reanimated 4.x (4.1.7+), Worklets 0.7+, and Gesture Handler 2 or 3. Choose compatible Reanimated and Worklets versions for your React Native version using the [Reanimated compatibility table](https://docs.swmansion.com/react-native-reanimated/docs/guides/compatibility/).

```shell
yarn add react-native-reanimated@^4.1.7 react-native-worklets "react-native-gesture-handler@^2 || ^3" react-native-skia@^2.15.1
yarn add react-native-reanimated@^4.1.7 react-native-worklets "react-native-gesture-handler@^2 || ^3" react-native-skia@^2.15.5
```

For a bare React Native app, add `"react-native-worklets/plugin"` last in the `plugins` list in `babel.config.js`. Expo's `babel-preset-expo` configures it automatically. Rebuild your native app after installing the dependencies.
Expand All @@ -51,7 +51,7 @@ To get started and read more about the API, view the [docs here](https://formida

### Upgrading from the scoped Skia package

Remove `@shopify/react-native-skia`, install `react-native-skia@^2.15.1`, and update all Skia imports (including web/headless deep imports and test mocks) to `react-native-skia`. Do not install both packages: they contain the same native module. Reanimated 3 users must also migrate to Reanimated 4 and Worklets. Chart APIs are unchanged; Skia 3 is not supported by this release.
Remove `@shopify/react-native-skia`, install `react-native-skia@^2.15.5`, and update all Skia imports (including web/headless deep imports and test mocks) to `react-native-skia`. Do not install both packages: they contain the same native module. Reanimated 3 users must also migrate to Reanimated 4 and Worklets. Chart APIs are unchanged; Skia 3 is not supported by this release.

See the [migration guide](https://commerce.nearform.com/open-source/victory-native/docs/skia-package-migration) for the full upgrade steps, Babel configuration, and platform notes.

Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"react-native-reanimated": "4.5.1",
"react-native-safe-area-context": "~5.7.0",
"react-native-screens": "~4.26.0",
"react-native-skia": "2.15.1",
"react-native-skia": "2.15.5",
"react-native-web": "~0.21.0",
"react-native-wheel-color-picker": "^1.2.0",
"react-native-worklets": "0.10.1",
Expand Down
4 changes: 2 additions & 2 deletions lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"react-native": ">=0.79",
"react-native-gesture-handler": ">=2.0.0 <4.0.0",
"react-native-reanimated": ">=4.1.7 <5.0.0",
"react-native-skia": ">=2.15.1 <3.0.0",
"react-native-skia": ">=2.15.5 <3.0.0",
"react-native-worklets": ">=0.7.0"
},
"devDependencies": {
Expand All @@ -61,7 +61,7 @@
"pngjs": "^7.0.0",
"react": "19.2.3",
"react-dom": "19.2.3",
"react-native-skia": "2.15.1",
"react-native-skia": "2.15.5",
"typescript": "^5.1.6",
"vite": "^7.0.0",
"vitest": "^4.1.7"
Expand Down
4 changes: 2 additions & 2 deletions website/docs/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import tooltipMp4 from "./assets/getting-started-tooltip.mp4";

## Installation

Requires React 19+, React Native 0.79+ with the New Architecture, [Skia 2.x (2.15.1+)](https://wcandillon.github.io/react-native-skia/v2/), [Reanimated 4.x (4.1.7+)](https://docs.swmansion.com/react-native-reanimated/), Worklets 0.7+, and [Gesture Handler 2 or 3](https://docs.swmansion.com/react-native-gesture-handler/). Choose a compatible Reanimated/Worklets pair for your React Native version using the [compatibility table](https://docs.swmansion.com/react-native-reanimated/docs/guides/compatibility/).
Requires React 19+, React Native 0.79+ with the New Architecture, [Skia 2.x (2.15.5+)](https://wcandillon.github.io/react-native-skia/v2/), [Reanimated 4.x (4.1.7+)](https://docs.swmansion.com/react-native-reanimated/), Worklets 0.7+, and [Gesture Handler 2 or 3](https://docs.swmansion.com/react-native-gesture-handler/). Choose a compatible Reanimated/Worklets pair for your React Native version using the [compatibility table](https://docs.swmansion.com/react-native-reanimated/docs/guides/compatibility/).

```shell
yarn add react-native-reanimated@^4.1.7 react-native-worklets "react-native-gesture-handler@^2 || ^3" react-native-skia@^2.15.1
yarn add react-native-reanimated@^4.1.7 react-native-worklets "react-native-gesture-handler@^2 || ^3" react-native-skia@^2.15.5
```

For a bare React Native app, add `"react-native-worklets/plugin"` last in your `babel.config.js` plugins. Expo's `babel-preset-expo` configures it automatically. Rebuild your native app after installation (run `pod install` for iOS).
Expand Down
4 changes: 2 additions & 2 deletions website/docs/skia-package-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This major release moves Victory Native from `@shopify/react-native-skia` to **`
| --- | --- |
| React | 19 or later |
| React Native | 0.79 or later, with the New Architecture |
| `react-native-skia` | 2.15.1 or later in the 2.x series |
| `react-native-skia` | 2.15.5 or later in the 2.x series |
| `react-native-reanimated` | 4.1.7 or later in the 4.x series |
| `react-native-worklets` | 0.7 or later, compatible with your Reanimated version |
| `react-native-gesture-handler` | 2.x or 3.x |
Expand All @@ -19,7 +19,7 @@ These are minimum peer requirements, not a guarantee that every combination work

```sh
yarn remove @shopify/react-native-skia
yarn add react-native-skia@^2.15.1 react-native-reanimated@^4.1.7 react-native-worklets "react-native-gesture-handler@^2 || ^3"
yarn add react-native-skia@^2.15.5 react-native-reanimated@^4.1.7 react-native-worklets "react-native-gesture-handler@^2 || ^3"
yarn add victory-native@latest
```

Expand Down
27 changes: 9 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5327,16 +5327,7 @@ __metadata:
languageName: node
linkType: hard

"canvaskit-wasm@npm:0.41.0":
version: 0.41.0
resolution: "canvaskit-wasm@npm:0.41.0"
dependencies:
"@webgpu/types": "npm:0.1.21"
checksum: 10c0/a55eb2cb627f2cdf017e05dba794c35225725af13c223c573ffb04f9f783d16e6c80fa0eb21a712c7b0a56f29dc0a693aee1eee61fe75e2b74e821a10236d8ef
languageName: node
linkType: hard

"canvaskit-wasm@npm:^0.41.0":
"canvaskit-wasm@npm:0.41.1, canvaskit-wasm@npm:^0.41.0":
version: 0.41.1
resolution: "canvaskit-wasm@npm:0.41.1"
dependencies:
Expand Down Expand Up @@ -6720,7 +6711,7 @@ __metadata:
react-native-reanimated: "npm:4.5.1"
react-native-safe-area-context: "npm:~5.7.0"
react-native-screens: "npm:~4.26.0"
react-native-skia: "npm:2.15.1"
react-native-skia: "npm:2.15.5"
react-native-web: "npm:~0.21.0"
react-native-wheel-color-picker: "npm:^1.2.0"
react-native-worklets: "npm:0.10.1"
Expand Down Expand Up @@ -10233,11 +10224,11 @@ __metadata:
languageName: node
linkType: hard

"react-native-skia@npm:2.15.1":
version: 2.15.1
resolution: "react-native-skia@npm:2.15.1"
"react-native-skia@npm:2.15.5":
version: 2.15.5
resolution: "react-native-skia@npm:2.15.5"
dependencies:
canvaskit-wasm: "npm:0.41.0"
canvaskit-wasm: "npm:0.41.1"
react-native-skia-android: "npm:154.0.0"
react-native-skia-apple-ios: "npm:154.0.0"
react-native-skia-apple-macos: "npm:154.0.0"
Expand All @@ -10257,7 +10248,7 @@ __metadata:
optional: true
bin:
setup-skia-web: scripts/setup-canvaskit.js
checksum: 10c0/4529f8b7d7eee4a084ff6de861bbb14fba3fa3f1559642af5b95ccf35ab4bf83f15b1ab1f233e60b512bea89d63e7eb906ed1bad5f4381f13c9b1abbc6dd484c
checksum: 10c0/b16109d6b217f52ed692bde4371f344c2eecea067aa9ddf8aa6d17f6041211623c466ea9c7a8134cd86ca6ec103b2164bf50db8c7b84efc5b5ba903ce468f73d
languageName: node
linkType: hard

Expand Down Expand Up @@ -12095,7 +12086,7 @@ __metadata:
react: "npm:19.2.3"
react-dom: "npm:19.2.3"
react-fast-compare: "npm:^3.2.2"
react-native-skia: "npm:2.15.1"
react-native-skia: "npm:2.15.5"
typescript: "npm:^5.1.6"
vite: "npm:^7.0.0"
vitest: "npm:^4.1.7"
Expand All @@ -12104,7 +12095,7 @@ __metadata:
react-native: ">=0.79"
react-native-gesture-handler: ">=2.0.0 <4.0.0"
react-native-reanimated: ">=4.1.7 <5.0.0"
react-native-skia: ">=2.15.1 <3.0.0"
react-native-skia: ">=2.15.5 <3.0.0"
react-native-worklets: ">=0.7.0"
languageName: unknown
linkType: soft
Expand Down
Loading