Files
Schnappix/node_modules/react-native-svg/src/elements/ClipPath.tsx
T

24 lines
576 B
TypeScript

import type { ReactNode } from 'react';
import * as React from 'react';
import { extract } from '../lib/extract/extractProps';
import Shape from './Shape';
import RNSVGClipPath from '../fabric/ClipPathNativeComponent';
export interface ClipPathProps {
children?: ReactNode;
id?: string;
}
export default class ClipPath extends Shape<ClipPathProps> {
static displayName = 'ClipPath';
render() {
const { props } = this;
return (
<RNSVGClipPath ref={this.refMethod} {...extract(this, props)}>
{props.children}
</RNSVGClipPath>
);
}
}