UNPKG

469 BTypeScriptView Raw
1import React from 'react';
2import { requireNativeComponent } from 'react-native';
3import { extract } from '../lib/extract/extractProps';
4import Shape from './Shape';
5
6export default class Path extends Shape<{
7 d?: string;
8}> {
9 static displayName = 'Path';
10
11 render() {
12 const { props } = this;
13 return (
14 <RNSVGPath ref={this.refMethod} {...extract(this, props)} d={props.d} />
15 );
16 }
17}
18
19export const RNSVGPath = requireNativeComponent('RNSVGPath');