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
What's happening?
onLayoutthat's used in SkiaCameraCanvas.tsx was recently removed in @shopify/react-native-skia v2.2.1 release and is now replaced withonSize.Workaround for now is to downgrade
@shopify/react-native-skiatov2.2.0or lower.Reproduceable Code
VisionCamera Version
@shopify/react-native-skia@^2.2.1Can you reproduce this issue in the VisionCamera Example app?
Yes, I can reproduce the same issue in the Example app here
Additional information