@shopify/react-native-skia
Version:
High-performance React Native Graphics using Skia
22 lines (21 loc) • 697 B
TypeScript
import type { SharedValue } from "react-native-reanimated";
import type { SkImage } from "../../skia/types";
type MaybeAnimated<T> = SharedValue<T> | T;
interface PlaybackOptions {
looping: MaybeAnimated<boolean>;
paused: MaybeAnimated<boolean>;
seek: MaybeAnimated<number | null>;
volume: MaybeAnimated<number>;
}
export declare const useVideo: (source: string | null, userOptions?: Partial<PlaybackOptions>) => {
currentFrame: SharedValue<SkImage | null>;
currentTime: SharedValue<number>;
duration: number;
framerate: number;
rotation: import("../../skia/types").VideoRotation;
size: {
width: number;
height: number;
};
};
export {};