@shopify/react-native-skia
Version:
High-performance React Native Graphics using Skia
19 lines (16 loc) • 664 B
text/typescript
import { codegenNativeComponent, type ViewProps } from "react-native";
import type { WithDefault } from "react-native/Libraries/Types/CodegenTypes";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore - pointerEvents needs to be redeclared for codegen to generate native bindings
export interface NativeProps extends ViewProps {
debug?: boolean;
opaque?: boolean;
colorSpace?: string;
androidWarmup?: boolean;
pointerEvents?: WithDefault<
"auto" | "none" | "box-none" | "box-only",
"auto"
>;
}
// eslint-disable-next-line import/no-default-export
export default codegenNativeComponent<NativeProps>("SkiaPictureView");