mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
fix module require
fix module require
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
import React, {
|
||||
ART,
|
||||
Component,
|
||||
PropTypes
|
||||
} from 'react-native';
|
||||
import {
|
||||
import fillFilter from './lib/fillFilter';
|
||||
|
||||
let {
|
||||
Surface,
|
||||
Shape
|
||||
} from 'ReactNativeART';
|
||||
import fillFilter from './lib/fillFilter';
|
||||
} = ART;
|
||||
|
||||
let propType = PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired;
|
||||
class Circle extends Component{
|
||||
|
||||
10
Ellipse.js
10
Ellipse.js
@@ -1,12 +1,14 @@
|
||||
import React, {
|
||||
Component,
|
||||
PropTypes
|
||||
PropTypes,
|
||||
ART
|
||||
} from 'react-native';
|
||||
import {
|
||||
import fillFilter from './lib/fillFilter';
|
||||
|
||||
let {
|
||||
Surface,
|
||||
Shape
|
||||
} from 'ReactNativeART';
|
||||
import fillFilter from './lib/fillFilter';
|
||||
} = ART;
|
||||
|
||||
let propType = PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired;
|
||||
class Ellipse extends Component{
|
||||
|
||||
9
Line.js
9
Line.js
@@ -1,13 +1,14 @@
|
||||
import React, {
|
||||
Component,
|
||||
PropTypes
|
||||
PropTypes,
|
||||
ART
|
||||
} from 'react-native';
|
||||
import {
|
||||
|
||||
let {
|
||||
Surface,
|
||||
Shape,
|
||||
Group
|
||||
} from 'ReactNativeART';
|
||||
|
||||
} = ART;
|
||||
|
||||
let propType = PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired;
|
||||
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
import React, {
|
||||
Component,
|
||||
PropTypes
|
||||
PropTypes,
|
||||
ART
|
||||
} from 'react-native';
|
||||
import {
|
||||
let {
|
||||
Surface,
|
||||
Shape,
|
||||
Group
|
||||
} from 'ReactNativeART';
|
||||
} = ART;
|
||||
import fillFilter from './lib/fillFilter';
|
||||
|
||||
class Polygon extends Component{
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
import React, {
|
||||
Component,
|
||||
PropTypes
|
||||
PropTypes,
|
||||
ART
|
||||
} from 'react-native';
|
||||
import {
|
||||
let {
|
||||
Surface,
|
||||
Shape
|
||||
} from 'ReactNativeART';
|
||||
} = ART;
|
||||
|
||||
|
||||
|
||||
class Polyline extends Component{
|
||||
|
||||
8
Svg.js
8
Svg.js
@@ -1,12 +1,16 @@
|
||||
import {
|
||||
ART
|
||||
} from 'react-native';
|
||||
import Circle from './Circle';
|
||||
import Ellipse from './Ellipse';
|
||||
import Polygon from './Polygon';
|
||||
import Polyline from './Polyline';
|
||||
import {
|
||||
|
||||
let {
|
||||
Surface,
|
||||
Shape,
|
||||
Group
|
||||
} from 'ReactNativeART';
|
||||
} = ART;
|
||||
|
||||
export {
|
||||
Surface as Svg,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"name": "react-native-art-svg",
|
||||
"description": "react native svg library based on `ART`",
|
||||
"repository": {
|
||||
|
||||
Reference in New Issue
Block a user