@shopify/react-native-skia
Version:
High-performance React Native Graphics using Skia
10 lines (9 loc) • 481 B
TypeScript
import type { AnimationState, SkiaAnimation } from "../types";
import { RNSkClockValue } from "./RNSkClockValue";
export declare class RNSkAnimation<S extends AnimationState = AnimationState> extends RNSkClockValue implements SkiaAnimation {
constructor(callback: (t: number, state: S | undefined) => S, raf: (callback: (time: number) => void) => number);
private _callback;
private _animationState;
cancel(): void;
protected update(nextValue: number): void;
}