UNPKG

@shopify/react-native-skia

Version:

High-performance React Native Graphics using Skia

15 lines (14 loc) 589 B
import type { CanvasKit, Surface } from "canvaskit-wasm"; import type { SkCanvas, SkImage, SkRect, SkSurface } from "../types"; import { HostObject } from "./Host"; import { JsiSkImage } from "./JsiSkImage"; export declare class JsiSkSurface extends HostObject<Surface, "Surface"> implements SkSurface { constructor(CanvasKit: CanvasKit, ref: Surface); dispose: () => void; flush(): void; width(): number; height(): number; getCanvas(): SkCanvas; makeImageSnapshot(bounds?: SkRect, outputImage?: JsiSkImage): SkImage; getNativeTextureUnstable(): unknown; }