mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-08 01:00:43 +00:00
Remove internal imports. Run prettier.
This commit is contained in:
+16
-18
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user