Remove internal imports. Run prettier.

This commit is contained in:
Mikael Sand
2018-03-19 04:02:14 +02:00
parent 461d176d20
commit 4e6ba9a786
24 changed files with 510 additions and 422 deletions
+14 -13
View File
@@ -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
});