Type Alias: SkCanvasHandle
SkCanvasHandle =
CustomType<object,"SkCanvasHandle", {include:"SsRNSkiaInterop.hpp"; }>
Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:29
An RN Skia SkCanvas, unwrapped back to the SkCanvas* behind it.
RN Skia hands JS a JSI host object wrapping the real canvas. Nitro's CustomType is the escape hatch that lets a spec name a type Nitro does not know: the JSIConverter in cpp/SsRNSkiaInterop.hpp does the unwrapping, so C++ ends up holding the same pointer RN Skia's own draw calls use.
This is what makes drawInto possible at all — without it there is no way to hand a canvas across the Nitro boundary, and the whole design rests on the canvas reaching C++.