expo / expo/examples

Bug - Skia: Canvas crashes with "Expected arraybuffer as first parameter" error

Open
#652 7 comments 8 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.7k
Forks
1.1k
Avg merge
11h 15m
Merged PRs (30d)
1

Description

**Environment:**
Device: iOS Simulator/Device
Expo SDK: ~54.0.27
React Native: 0.81.5
React: 19.1.0
@shopify/react-native-skia: ^2.4.7

**Description:**
The app crashes immediately when rendering a `@shopify/react-native-skia` Canvas component with the error:
`[Error: Expected arraybuffer as first parameter]`

**To Reproduce:**

- Install @shopify/react-native-skia@^2.4.7 in an Expo ~54 project
- Import and use Canvas from @shopify/react-native-skia
- Render any Skia components inside the Canvas
- Run on iOS
- Error occurs immediately on component mount

Code:
```
import { Canvas, Circle, Group } from "@shopify/react-native-skia";





```

**Expected behavior:**
Canvas should render with the Skia components (circles with blend mode).

Actual behavior:
App crashes with arraybuffer error at Canvas initialization.

Root Cause:

- Likely a version compatibility issue between:
- React Native 0.81.5 (relatively new)
- Expo SDK 54
- react-native-skia 2.4.7 (may not fully support this RN version yet)
.x

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.