mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-13 07:41:37 +00:00
change Example dependency
change Example dependency from art-svg to svg
This commit is contained in:
@@ -4,7 +4,7 @@ import React, {
|
||||
|
||||
import Svg, {
|
||||
Circle
|
||||
} from 'react-native-art-svg';
|
||||
} from 'react-native-svg';
|
||||
|
||||
class CircleExample extends Component{
|
||||
static title = 'Circle';
|
||||
|
||||
@@ -13,7 +13,7 @@ import Svg, {
|
||||
G,
|
||||
Polygon,
|
||||
Circle
|
||||
} from 'react-native-art-svg';
|
||||
} from 'react-native-svg';
|
||||
|
||||
class ClipPathAttr extends Component{
|
||||
static title = 'Clip by set clip-path with a path data';
|
||||
|
||||
@@ -4,7 +4,7 @@ import React, {
|
||||
|
||||
import Svg, {
|
||||
Ellipse
|
||||
} from 'react-native-art-svg';
|
||||
} from 'react-native-svg';
|
||||
|
||||
class EllipseExample extends Component{
|
||||
static title = 'Ellipse';
|
||||
|
||||
@@ -8,7 +8,7 @@ import Svg, {
|
||||
Line,
|
||||
Rect,
|
||||
Text
|
||||
} from 'react-native-art-svg';
|
||||
} from 'react-native-svg';
|
||||
|
||||
class GExample extends Component{
|
||||
static title = 'G children props inherit';
|
||||
|
||||
@@ -11,7 +11,7 @@ import Svg, {
|
||||
Circle,
|
||||
Text,
|
||||
Rect
|
||||
} from 'react-native-art-svg';
|
||||
} from 'react-native-svg';
|
||||
|
||||
class LinearGradientHorizontal extends Component{
|
||||
static title = 'Define an ellipse with a horizontal linear gradient from yellow to red';
|
||||
|
||||
@@ -4,7 +4,7 @@ import React, {
|
||||
|
||||
import Svg, {
|
||||
Line
|
||||
} from 'react-native-art-svg';
|
||||
} from 'react-native-svg';
|
||||
|
||||
class LineExample extends Component{
|
||||
static title = 'Line';
|
||||
|
||||
@@ -7,7 +7,7 @@ import Svg, {
|
||||
G,
|
||||
Circle,
|
||||
Text
|
||||
} from 'react-native-art-svg';
|
||||
} from 'react-native-svg';
|
||||
|
||||
class PathExample extends Component{
|
||||
static title = 'Path';
|
||||
|
||||
@@ -5,7 +5,7 @@ import React, {
|
||||
import Svg, {
|
||||
Polygon,
|
||||
G
|
||||
} from 'react-native-art-svg';
|
||||
} from 'react-native-svg';
|
||||
|
||||
class PolygonExample extends Component{
|
||||
static title = 'The following example creates a polygon with three sides';
|
||||
|
||||
@@ -4,7 +4,7 @@ import React, {
|
||||
|
||||
import Svg, {
|
||||
Polyline
|
||||
} from 'react-native-art-svg';
|
||||
} from 'react-native-svg';
|
||||
|
||||
class PolylineExample extends Component{
|
||||
static title = 'The <Polyline> element is used to create any shape that consists of only straight lines';
|
||||
|
||||
@@ -4,7 +4,7 @@ import React, {
|
||||
|
||||
import Svg, {
|
||||
Rect
|
||||
} from 'react-native-art-svg';
|
||||
} from 'react-native-svg';
|
||||
|
||||
class RectExample extends Component{
|
||||
static title = 'Rect';
|
||||
|
||||
@@ -5,7 +5,7 @@ import React, {
|
||||
import Svg, {
|
||||
Path,
|
||||
G
|
||||
} from 'react-native-art-svg';
|
||||
} from 'react-native-svg';
|
||||
|
||||
class StrokeExample extends Component{
|
||||
static title = 'The stroke property defines the color of a line, text or outline of an element';
|
||||
|
||||
@@ -6,7 +6,7 @@ import Svg, {
|
||||
Circle,
|
||||
Rect,
|
||||
Path
|
||||
} from 'react-native-art-svg';
|
||||
} from 'react-native-svg';
|
||||
|
||||
class SvgExample extends Component{
|
||||
static title = 'SVG';
|
||||
|
||||
@@ -6,7 +6,7 @@ import Svg, {
|
||||
Symbol,
|
||||
Circle,
|
||||
Use
|
||||
} from 'react-native-art-svg';
|
||||
} from 'react-native-svg';
|
||||
|
||||
class SymbolExample extends Component{
|
||||
static title = 'Symbol example';
|
||||
|
||||
@@ -4,7 +4,7 @@ import React, {
|
||||
|
||||
import Svg, {
|
||||
Text
|
||||
} from 'react-native-art-svg';
|
||||
} from 'react-native-svg';
|
||||
|
||||
class TextExample extends Component{
|
||||
static title = 'Text';
|
||||
|
||||
@@ -9,7 +9,7 @@ import Svg, {
|
||||
Rect,
|
||||
Circle,
|
||||
Polyline
|
||||
} from 'react-native-art-svg';
|
||||
} from 'react-native-svg';
|
||||
|
||||
class UseExample extends Component{
|
||||
static title = 'Reuse svg code';
|
||||
|
||||
@@ -21,7 +21,7 @@ import {
|
||||
Svg,
|
||||
Circle,
|
||||
Line
|
||||
} from 'react-native-art-svg';
|
||||
} from 'react-native-svg';
|
||||
import * as examples from './examples';
|
||||
import Modal from 'react-native-root-modal';
|
||||
const hairline = StyleSheet.hairlineWidth;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"react-native": "^0.18.1",
|
||||
"react-native-art-svg": "../",
|
||||
"react-native-svg": "../",
|
||||
"react-native-root-modal": "^1.0.3"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user