Skip to content

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

@nawwa

Description

@nawwa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions