@shopify/react-native-skia
Version:
High-performance React Native Graphics using Skia
13 lines (12 loc) • 915 B
TypeScript
import type { DependencyList } from "react";
import type { FrameCallback, FrameInfo, SharedValue } from "react-native-reanimated";
export declare const HAS_REANIMATED2: boolean;
export declare const HAS_REANIMATED3: boolean;
export declare function throwOnMissingReanimated(): void;
export declare const useSharedValue: <T>(init: T, oneWayReadsOnly?: boolean) => SharedValue<T>;
export declare const useFrameCallback: (callback: (frameInfo: FrameInfo) => void, autostart?: boolean) => FrameCallback;
export declare const startMapper: (worklet: () => void, inputs?: unknown[], outputs?: unknown[]) => number;
export declare const stopMapper: (mapperID: number) => void;
export declare const runOnJS: any;
export declare const useAnimatedReaction: <T>(prepare: () => T, react: (v: T) => void, dependencies?: DependencyList) => void;
export declare const isSharedValue: <T>(value: unknown) => value is SharedValue<T>;