diff --git a/.eslintignore b/.eslintignore
index 8b13789..415cc25 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -1 +1,4 @@
-
+**/node_modules/
+android/
+ios/
+screenShoots/
diff --git a/.eslintrc b/.eslintrc
index 905cabe..9cc29e4 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -208,7 +208,7 @@
"react/jsx-boolean-value": 0,
"react/jsx-no-undef": 1,
"react/jsx-sort-props": 0,
- "react/jsx-uses-react": 0,
+ "react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-did-mount-set-state": [1, "allow-in-func"],
"react/no-did-update-set-state": [1, "allow-in-func"],
diff --git a/.gitignore b/.gitignore
index 434e949..441681b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,7 +4,7 @@
# Xcode
#
-build/
+build
*.pbxuser
!default.pbxuser
*.mode1v3
@@ -23,13 +23,13 @@ project.xcworkspace
# Android/IJ
#
-.idea/
+.idea
.gradle
local.properties
# node.js
#
-node_modules/
+node_modules
npm-debug.log
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..248ab25
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,10 @@
+sudo: false
+
+language: node_js
+node_js:
+ - '5'
+ - '4'
+ - '0.12'
+
+script:
+ - npm run lint
diff --git a/Example/examples/Circle.js b/Example/examples/Circle.js
index 0de6680..8ecd00c 100644
--- a/Example/examples/Circle.js
+++ b/Example/examples/Circle.js
@@ -81,4 +81,4 @@ const samples = [CircleExample, StrokeCircle, StrokeOpacityCircle];
export {
icon,
samples
-}
+};
diff --git a/Example/examples/Clipping.js b/Example/examples/Clipping.js
index 47eebae..123ce58 100644
--- a/Example/examples/Clipping.js
+++ b/Example/examples/Clipping.js
@@ -218,4 +218,4 @@ const samples = [ClipPathAttr, ClipRule, ClipPathElement, TextClipping];
export {
icon,
samples
-}
+};
diff --git a/Example/examples/Ellipse.js b/Example/examples/Ellipse.js
index 9391d57..b22ded9 100644
--- a/Example/examples/Ellipse.js
+++ b/Example/examples/Ellipse.js
@@ -73,4 +73,4 @@ const samples = [EllipseExample, PileEllipses, CombinedEllipses];
export {
icon,
samples
-}
+};
diff --git a/Example/examples/G.js b/Example/examples/G.js
index 193a1e5..a5b5a12 100644
--- a/Example/examples/G.js
+++ b/Example/examples/G.js
@@ -130,4 +130,4 @@ const samples = [GExample, GTransform];
export {
icon,
samples
-}
+};
diff --git a/Example/examples/Line.js b/Example/examples/Line.js
index 20e9a94..5b8cd5e 100644
--- a/Example/examples/Line.js
+++ b/Example/examples/Line.js
@@ -84,4 +84,4 @@ const samples = [LineExample, LineWithStrokeLinecap];
export {
icon,
samples
-}
+};
diff --git a/Example/examples/Path.js b/Example/examples/Path.js
index 4aaa7fb..45c731b 100644
--- a/Example/examples/Path.js
+++ b/Example/examples/Path.js
@@ -114,4 +114,4 @@ const samples = [PathExample, UnclosedPath, BezierCurve];
export {
icon,
samples
-}
+};
diff --git a/Example/examples/Polygon.js b/Example/examples/Polygon.js
index dbcb53a..d4e59d4 100644
--- a/Example/examples/Polygon.js
+++ b/Example/examples/Polygon.js
@@ -100,4 +100,4 @@ const samples = [PolygonExample, FourSidePolygon, StarPolygon, EvenOddPolygon];
export {
icon,
samples
-}
+};
diff --git a/Example/examples/Polyline.js b/Example/examples/Polyline.js
index 002f0fe..c7349fb 100644
--- a/Example/examples/Polyline.js
+++ b/Example/examples/Polyline.js
@@ -93,4 +93,4 @@ const samples = [PolylineExample, StraightLines, PolylineFill, PolylineFillStrok
export {
icon,
samples
-}
+};
diff --git a/Example/examples/Rect.js b/Example/examples/Rect.js
index 5963868..1c19f42 100644
--- a/Example/examples/Rect.js
+++ b/Example/examples/Rect.js
@@ -134,6 +134,6 @@ const samples = [RectExample, RectStrokeFill, RoundedRect, EllipseRect, RoundOve
export {
icon,
samples
-}
+};
diff --git a/Example/examples/Stroking.js b/Example/examples/Stroking.js
index 15aef52..fd85848 100644
--- a/Example/examples/Stroking.js
+++ b/Example/examples/Stroking.js
@@ -146,4 +146,4 @@ const samples = [StrokeExample, StrokeLinecap, StrokeDasharray, StrokeDashoffset
export {
icon,
samples
-}
+};
diff --git a/Example/examples/Svg.js b/Example/examples/Svg.js
index c39e953..2a64cea 100644
--- a/Example/examples/Svg.js
+++ b/Example/examples/Svg.js
@@ -161,4 +161,4 @@ const samples = [SvgExample, SvgOpacity, SvgViewbox, SvgLayout];
export {
icon,
samples
-}
+};
diff --git a/Example/examples/Symbol.js b/Example/examples/Symbol.js
index d4bbed9..6ac83b2 100644
--- a/Example/examples/Symbol.js
+++ b/Example/examples/Symbol.js
@@ -73,4 +73,4 @@ const samples = [SymbolExample];
export {
icon,
samples
-}
+};
diff --git a/Example/examples/Text.js b/Example/examples/Text.js
index cb17ee1..ce9b6ae 100644
--- a/Example/examples/Text.js
+++ b/Example/examples/Text.js
@@ -6,9 +6,7 @@ import Svg, {
Text,
LinearGradient,
Stop,
- Defs,
- ClipPath,
- Rect
+ Defs
} from 'react-native-svg';
class TextExample extends Component{
@@ -165,4 +163,4 @@ const samples = [
export {
icon,
samples
-}
+};
diff --git a/Example/examples/Use.js b/Example/examples/Use.js
index 6bb5399..cb23cdc 100644
--- a/Example/examples/Use.js
+++ b/Example/examples/Use.js
@@ -30,7 +30,7 @@ class UseExample extends Component{
;
- };
+ }
}
class UseShapes extends Component{
@@ -47,7 +47,7 @@ class UseShapes extends Component{
;
- };
+ }
}
const icon =