react-native-svg
Version:
SVG library for react-native
25 lines (24 loc) • 688 B
TypeScript
import { ReactNode } from 'react';
import { CommonPathProps, NumberProp } from '../lib/extract/types';
import Shape from './Shape';
export declare type TMaskUnits = 'userSpaceOnUse' | 'objectBoundingBox';
export interface MaskProps extends CommonPathProps {
children?: ReactNode;
id?: string;
x?: NumberProp;
y?: NumberProp;
width?: NumberProp;
height?: NumberProp;
maskUnits?: TMaskUnits;
maskContentUnits?: TMaskUnits;
}
export default class Mask extends Shape<MaskProps> {
static displayName: string;
static defaultProps: {
x: string;
y: string;
width: string;
height: string;
};
render(): JSX.Element;
}