@shopify/react-native-skia
Version:
High-performance React Native Graphics using Skia
13 lines (12 loc) • 472 B
TypeScript
import type { ComponentProps, ComponentType } from "react";
import React, { Suspense } from "react";
import { LoadSkiaWeb } from "./LoadSkiaWeb";
interface WithSkiaProps {
fallback?: ComponentProps<typeof Suspense>["fallback"];
getComponent: () => Promise<{
default: ComponentType;
}>;
opts?: Parameters<typeof LoadSkiaWeb>[0];
}
export declare const WithSkiaWeb: ({ getComponent, fallback, opts, }: WithSkiaProps) => React.JSX.Element;
export {};