fix lint warning

This commit is contained in:
Horcrux
2016-05-21 21:07:26 +08:00
parent be4d7bc477
commit 329629ae21
6 changed files with 10 additions and 7 deletions

View File

@@ -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"

View File

@@ -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%"

View File

@@ -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;

View File

@@ -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';

View File

@@ -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';

View File

@@ -39,4 +39,4 @@ export default {
touchableGetPressOutDelayMS: function() { touchableGetPressOutDelayMS: function() {
return this.props.delayPressOut || 0; return this.props.delayPressOut || 0;
} }
} };