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