mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-04 23:54:53 +00:00
Remove internal imports. Run prettier.
This commit is contained in:
+14
-13
@@ -1,13 +1,13 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import createReactNativeComponentClass from '../lib/createReactNativeComponentClass';
|
||||
import {PathAttributes} from '../lib/attributes';
|
||||
import Shape from './Shape';
|
||||
import {pathProps} from '../lib/props';
|
||||
import extractProps from '../lib/extract/extractProps';
|
||||
import React from "react";
|
||||
import PropTypes from "prop-types";
|
||||
import { requireNativeComponent } from "react-native";
|
||||
import { PathAttributes } from "../lib/attributes";
|
||||
import Shape from "./Shape";
|
||||
import { pathProps } from "../lib/props";
|
||||
import extractProps from "../lib/extract/extractProps";
|
||||
|
||||
export default class extends Shape {
|
||||
static displayName = 'Path';
|
||||
static displayName = "Path";
|
||||
|
||||
static propTypes = {
|
||||
...pathProps,
|
||||
@@ -23,7 +23,9 @@ export default class extends Shape {
|
||||
|
||||
return (
|
||||
<RNSVGPath
|
||||
ref={ele => {this.root = ele;}}
|
||||
ref={ele => {
|
||||
this.root = ele;
|
||||
}}
|
||||
{...extractProps(props, this)}
|
||||
d={props.d}
|
||||
/>
|
||||
@@ -31,7 +33,6 @@ export default class extends Shape {
|
||||
}
|
||||
}
|
||||
|
||||
const RNSVGPath = createReactNativeComponentClass('RNSVGPath', () => ({
|
||||
validAttributes: PathAttributes,
|
||||
uiViewClassName: 'RNSVGPath'
|
||||
}));
|
||||
const RNSVGPath = requireNativeComponent("RNSVGPath", null, {
|
||||
nativeOnly: PathAttributes
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user