Skip to content

🐛 react-native-skia removed support for onLayout in v2.2.1 #3598

@maksymblank

Description

@maksymblank

What's happening?

onLayout that's used in SkiaCameraCanvas.tsx was recently removed in @shopify/react-native-skia v2.2.1 release and is now replaced with onSize.

Workaround for now is to downgrade @shopify/react-native-skia to v2.2.0 or lower.

Reproduceable Code

const frameProcessor = useSkiaFrameProcessor(
    frame => {
      'worklet';

      frame.render();
    },
    [],
  );

VisionCamera Version

@shopify/react-native-skia @^2.2.1

Can you reproduce this issue in the VisionCamera Example app?

Yes, I can reproduce the same issue in the Example app here

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions