mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-22 06:55:15 +00:00
fix lint warning
This commit is contained in:
@@ -9,6 +9,7 @@ import Svg, {
|
|||||||
class CircleExample extends Component{
|
class CircleExample extends Component{
|
||||||
static title = 'Circle';
|
static title = 'Circle';
|
||||||
render() {
|
render() {
|
||||||
|
|
||||||
return <Svg
|
return <Svg
|
||||||
height="100"
|
height="100"
|
||||||
width="140"
|
width="140"
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ class ClipPathAttr extends Component{
|
|||||||
height="100"
|
height="100"
|
||||||
fill="url(#grad)"
|
fill="url(#grad)"
|
||||||
clipPath="M50,5L20,99L95,39L5,39L80,99z"
|
clipPath="M50,5L20,99L95,39L5,39L80,99z"
|
||||||
onStartShouldSetResponder={() => alert("1111111")}
|
|
||||||
/>
|
/>
|
||||||
<Rect
|
<Rect
|
||||||
x="40%"
|
x="40%"
|
||||||
|
|||||||
@@ -527,7 +527,10 @@
|
|||||||
);
|
);
|
||||||
INFOPLIST_FILE = ArtSvgExample/Info.plist;
|
INFOPLIST_FILE = ArtSvgExample/Info.plist;
|
||||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||||
OTHER_LDFLAGS = "-ObjC";
|
OTHER_LDFLAGS = (
|
||||||
|
"-ObjC",
|
||||||
|
"-lc++",
|
||||||
|
);
|
||||||
PRODUCT_NAME = ArtSvgExample;
|
PRODUCT_NAME = ArtSvgExample;
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
@@ -543,7 +546,10 @@
|
|||||||
);
|
);
|
||||||
INFOPLIST_FILE = ArtSvgExample/Info.plist;
|
INFOPLIST_FILE = ArtSvgExample/Info.plist;
|
||||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||||
OTHER_LDFLAGS = "-ObjC";
|
OTHER_LDFLAGS = (
|
||||||
|
"-ObjC",
|
||||||
|
"-lc++",
|
||||||
|
);
|
||||||
PRODUCT_NAME = ArtSvgExample;
|
PRODUCT_NAME = ArtSvgExample;
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
|
|||||||
@@ -3,8 +3,6 @@ import extractProps from '../lib/extract/extractProps';
|
|||||||
import createNativeComponent from '../lib/createNativeComponent';
|
import createNativeComponent from '../lib/createNativeComponent';
|
||||||
import mergeContext from '../lib/mergeContext';
|
import mergeContext from '../lib/mergeContext';
|
||||||
import {circleProps, pathProps, fillProps, strokeProps, numberProp} from '../lib/props';
|
import {circleProps, pathProps, fillProps, strokeProps, numberProp} from '../lib/props';
|
||||||
import SvgTouchableMixin from '../lib/SvgTouchableMixin';
|
|
||||||
import _ from 'lodash';
|
|
||||||
|
|
||||||
class Circle extends Component{
|
class Circle extends Component{
|
||||||
static displayName = 'Circle';
|
static displayName = 'Circle';
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import React, {Component, PropTypes} from 'react';
|
import React, {Component, PropTypes} from 'react';
|
||||||
import {NativeGroup} from './G';
|
|
||||||
import {set, remove} from '../lib/extract/extractClipping';
|
import {set, remove} from '../lib/extract/extractClipping';
|
||||||
import createNativeComponent from '../lib/createNativeComponent';
|
import createNativeComponent from '../lib/createNativeComponent';
|
||||||
|
|
||||||
|
|||||||
@@ -39,4 +39,4 @@ export default {
|
|||||||
touchableGetPressOutDelayMS: function() {
|
touchableGetPressOutDelayMS: function() {
|
||||||
return this.props.delayPressOut || 0;
|
return this.props.delayPressOut || 0;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user