1 | import React from 'react';
|
2 | import { requireNativeComponent } from 'react-native';
|
3 | import { extract } from '../lib/extract/extractProps';
|
4 | import Shape from './Shape';
|
5 |
|
6 | export 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 |
|
19 | export const RNSVGPath = requireNativeComponent('RNSVGPath');
|