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
+23 -20
View File
@@ -1,12 +1,12 @@
import React from 'react';
import createReactNativeComponentClass from '../lib/createReactNativeComponentClass';
import Shape from './Shape';
import {pathProps, numberProp} from '../lib/props';
import {EllipseAttributes} from '../lib/attributes';
import extractProps from '../lib/extract/extractProps';
import React from "react";
import { requireNativeComponent } from "react-native";
import Shape from "./Shape";
import { pathProps, numberProp } from "../lib/props";
import { EllipseAttributes } from "../lib/attributes";
import extractProps from "../lib/extract/extractProps";
export default class extends Shape{
static displayName = 'Ellipse';
export default class extends Shape {
static displayName = "Ellipse";
static propTypes = {
...pathProps,
@@ -30,18 +30,21 @@ export default class extends Shape{
render() {
let props = this.props;
return <RNSVGEllipse
ref={ele => {this.root = ele;}}
{...extractProps(props, this)}
cx={props.cx.toString()}
cy={props.cy.toString()}
rx={props.rx.toString()}
ry={props.ry.toString()}
/>;
return (
<RNSVGEllipse
ref={ele => {
this.root = ele;
}}
{...extractProps(props, this)}
cx={props.cx.toString()}
cy={props.cy.toString()}
rx={props.rx.toString()}
ry={props.ry.toString()}
/>
);
}
}
const RNSVGEllipse = createReactNativeComponentClass('RNSVGEllipse', () => ({
validAttributes: EllipseAttributes,
uiViewClassName: 'RNSVGEllipse'
}));
const RNSVGEllipse = requireNativeComponent("RNSVGEllipse", null, {
nativeOnly: EllipseAttributes
});