UNPKG

434 BTypeScriptView Raw
1import React from 'react';
2import { extract } from '../lib/extract/extractProps';
3import Shape from './Shape';
4import { RNSVGClipPath } from './NativeComponents';
5
6export default class ClipPath extends Shape<{}> {
7 static displayName = 'ClipPath';
8
9 render() {
10 const { props } = this;
11 return (
12 <RNSVGClipPath ref={this.refMethod} {...extract(this, props)}>
13 {props.children}
14 </RNSVGClipPath>
15 );
16 }
17}