@shopify/react-native-skia
Version:
High-performance React Native Graphics using Skia
9 lines (8 loc) • 386 B
TypeScript
import type { DependencyList } from "react";
import type { RNSkiaDrawCallback } from "./types";
/**
* Creates a memoized callback for the onDraw handler of a Skia component.
* @param callback The callback to memoize.
* @param deps Dependencies for the callback.
* */
export declare const useDrawCallback: (callback: RNSkiaDrawCallback, deps?: DependencyList) => RNSkiaDrawCallback;