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
+25 -22
View File
@@ -1,17 +1,17 @@
import React from 'react';
import createReactNativeComponentClass from '../lib/createReactNativeComponentClass';
import Shape from './Shape';
import {pathProps, fontProps} from '../lib/props';
import {GroupAttributes} from '../lib/attributes';
import extractProps from '../lib/extract/extractProps';
import {extractFont} from '../lib/extract/extractText';
import React from "react";
import { requireNativeComponent } from "react-native";
import Shape from "./Shape";
import { pathProps, fontProps } from "../lib/props";
import { GroupAttributes } from "../lib/attributes";
import extractProps from "../lib/extract/extractProps";
import { extractFont } from "../lib/extract/extractText";
export default class extends Shape{
static displayName = 'G';
export default class extends Shape {
static displayName = "G";
static propTypes = {
...pathProps,
...fontProps,
...fontProps
};
setNativeProps = (...args) => {
@@ -19,19 +19,22 @@ export default class extends Shape{
};
render() {
let {props} = this;
let { props } = this;
return <RNSVGGroup
{...extractProps(props, this)}
font={extractFont(props)}
ref={ele => {this.root = ele;}}
>
{props.children}
</RNSVGGroup>;
return (
<RNSVGGroup
{...extractProps(props, this)}
font={extractFont(props)}
ref={ele => {
this.root = ele;
}}
>
{props.children}
</RNSVGGroup>
);
}
}
const RNSVGGroup = createReactNativeComponentClass('RNSVGGroup', () => ({
validAttributes: GroupAttributes,
uiViewClassName: 'RNSVGGroup'
}));
const RNSVGGroup = requireNativeComponent("RNSVGGroup", null, {
nativeOnly: GroupAttributes
});