-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
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";
<Canvas style={{ width: 256, height: 256 }}>
<Group blendMode="multiply">
<Circle cx={r} cy={r} r={r} color="cyan" />
<Circle cx={width - r} cy={r} r={r} color="magenta" />
<Circle cx={width / 2} cy={width - r} r={r} color="yellow" />
</Group>
</Canvas>
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels