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
+16 -18
View File
@@ -1,29 +1,27 @@
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import extractViewBox from '../lib/extract/extractViewBox';
import createReactNativeComponentClass from '../lib/createReactNativeComponentClass';
import {SymbolAttributes} from '../lib/attributes';
import React, { Component } from "react";
import PropTypes from "prop-types";
import extractViewBox from "../lib/extract/extractViewBox";
import { requireNativeComponent } from "react-native";
import { SymbolAttributes } from "../lib/attributes";
export default class extends Component{
static displayName = 'Symbol';
export default class extends Component {
static displayName = "Symbol";
static propTypes = {
id: PropTypes.string.isRequired,
viewBox: PropTypes.string,
preserveAspectRatio: PropTypes.string
};
render() {
let {props} = this;
let { props } = this;
return <RNSVGSymbol
name={props.id}
{...extractViewBox(props)}
>
{props.children}
</RNSVGSymbol>;
return (
<RNSVGSymbol name={props.id} {...extractViewBox(props)}>
{props.children}
</RNSVGSymbol>
);
}
}
const RNSVGSymbol = createReactNativeComponentClass('RNSVGSymbol', () => ({
validAttributes: SymbolAttributes,
uiViewClassName: 'RNSVGSymbol'
}));
const RNSVGSymbol = requireNativeComponent("RNSVGSymbol", null, {
nativeOnly: SymbolAttributes
});