---
url: https://cri-middleware.github.io/SSPlayerForReactNative/api/type-aliases/SkCanvasHandle.md
---
# Type Alias: SkCanvasHandle

> **SkCanvasHandle** = `CustomType`<`object`, `"SkCanvasHandle"`, { `include`: `"SsRNSkiaInterop.hpp"`; }>

Defined in: [packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:29](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts#L29)

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++.
