From 1f7a90840655548e83e5d0587c4b50eb5b542313 Mon Sep 17 00:00:00 2001 From: Horcrux Date: Sat, 14 May 2016 09:52:14 +0800 Subject: [PATCH] checkout new branch for touch events support --- Example/examples/Circle.js | 2 +- Example/examples/Clipping.js | 2 +- Example/examples/Ellipse.js | 2 +- Example/examples/G.js | 2 +- Example/examples/Gradients.js | 2 +- Example/examples/Image.js | 2 +- Example/examples/Line.js | 2 +- Example/examples/Path.js | 2 +- Example/examples/Polygon.js | 2 +- Example/examples/Polyline.js | 2 +- Example/examples/Rect.js | 2 +- Example/examples/Stroking.js | 2 +- Example/examples/Svg.js | 7 +++++-- Example/examples/Symbol.js | 2 +- Example/examples/Text.js | 2 +- Example/examples/Use.js | 2 +- Example/main.js | 5 +++-- Example/package.json | 2 +- package.json | 5 ++++- 19 files changed, 28 insertions(+), 21 deletions(-) diff --git a/Example/examples/Circle.js b/Example/examples/Circle.js index 8ecd00cda..09663345c 100644 --- a/Example/examples/Circle.js +++ b/Example/examples/Circle.js @@ -1,6 +1,6 @@ import React, { Component -} from 'react-native'; +} from 'react'; import Svg, { Circle diff --git a/Example/examples/Clipping.js b/Example/examples/Clipping.js index 1b1088775..6edf1184f 100644 --- a/Example/examples/Clipping.js +++ b/Example/examples/Clipping.js @@ -1,6 +1,6 @@ import React, { Component -} from 'react-native'; +} from 'react'; import Svg, { ClipPath, diff --git a/Example/examples/Ellipse.js b/Example/examples/Ellipse.js index b22ded9b3..ee746f31b 100644 --- a/Example/examples/Ellipse.js +++ b/Example/examples/Ellipse.js @@ -1,6 +1,6 @@ import React, { Component -} from 'react-native'; +} from 'react'; import Svg, { Ellipse diff --git a/Example/examples/G.js b/Example/examples/G.js index c6aab7722..725d5bfa7 100644 --- a/Example/examples/G.js +++ b/Example/examples/G.js @@ -1,6 +1,6 @@ import React, { Component -} from 'react-native'; +} from 'react'; import Svg, { G, diff --git a/Example/examples/Gradients.js b/Example/examples/Gradients.js index 94bb5b49b..4df85f382 100644 --- a/Example/examples/Gradients.js +++ b/Example/examples/Gradients.js @@ -1,6 +1,6 @@ import React, { Component -} from 'react-native'; +} from 'react'; import Svg, { Defs, diff --git a/Example/examples/Image.js b/Example/examples/Image.js index c87721479..e10976a34 100644 --- a/Example/examples/Image.js +++ b/Example/examples/Image.js @@ -1,6 +1,6 @@ import React, { Component -} from 'react-native'; +} from 'react'; import Svg, { Image, diff --git a/Example/examples/Line.js b/Example/examples/Line.js index 5b8cd5e7a..dd9da11c9 100644 --- a/Example/examples/Line.js +++ b/Example/examples/Line.js @@ -1,6 +1,6 @@ import React, { Component -} from 'react-native'; +} from 'react'; import Svg, { Line diff --git a/Example/examples/Path.js b/Example/examples/Path.js index 45c731b03..906742b6a 100644 --- a/Example/examples/Path.js +++ b/Example/examples/Path.js @@ -1,6 +1,6 @@ import React, { Component -} from 'react-native'; +} from 'react'; import Svg, { Path, diff --git a/Example/examples/Polygon.js b/Example/examples/Polygon.js index d4e59d435..2a196d7b1 100644 --- a/Example/examples/Polygon.js +++ b/Example/examples/Polygon.js @@ -1,6 +1,6 @@ import React, { Component -} from 'react-native'; +} from 'react'; import Svg, { Polygon, diff --git a/Example/examples/Polyline.js b/Example/examples/Polyline.js index c7349fb92..2b92d254c 100644 --- a/Example/examples/Polyline.js +++ b/Example/examples/Polyline.js @@ -1,6 +1,6 @@ import React, { Component -} from 'react-native'; +} from 'react'; import Svg, { Polyline diff --git a/Example/examples/Rect.js b/Example/examples/Rect.js index 1c19f42fc..30999a340 100644 --- a/Example/examples/Rect.js +++ b/Example/examples/Rect.js @@ -1,6 +1,6 @@ import React, { Component -} from 'react-native'; +} from 'react'; import Svg, { Rect diff --git a/Example/examples/Stroking.js b/Example/examples/Stroking.js index fd858481e..453a0a233 100644 --- a/Example/examples/Stroking.js +++ b/Example/examples/Stroking.js @@ -1,6 +1,6 @@ import React, { Component -} from 'react-native'; +} from 'react'; import Svg, { Path, diff --git a/Example/examples/Svg.js b/Example/examples/Svg.js index 2a64ceacc..12fc3aba9 100644 --- a/Example/examples/Svg.js +++ b/Example/examples/Svg.js @@ -1,9 +1,12 @@ -import React, { - Component, +import { StyleSheet, View } from 'react-native'; +import React, { + Component +} from 'react'; + const styles = StyleSheet.create({ container: { flex: 1, diff --git a/Example/examples/Symbol.js b/Example/examples/Symbol.js index 6ac83b2c0..3c628f831 100644 --- a/Example/examples/Symbol.js +++ b/Example/examples/Symbol.js @@ -1,6 +1,6 @@ import React, { Component -} from 'react-native'; +} from 'react'; import Svg, { Symbol, diff --git a/Example/examples/Text.js b/Example/examples/Text.js index ce9b6ae66..8c15beb7e 100644 --- a/Example/examples/Text.js +++ b/Example/examples/Text.js @@ -1,6 +1,6 @@ import React, { Component -} from 'react-native'; +} from 'react'; import Svg, { Text, diff --git a/Example/examples/Use.js b/Example/examples/Use.js index cb23cdc99..3b1208f14 100644 --- a/Example/examples/Use.js +++ b/Example/examples/Use.js @@ -1,6 +1,6 @@ import React, { Component -} from 'react-native'; +} from 'react'; import Svg, { Defs, diff --git a/Example/main.js b/Example/main.js index 86bf18c80..7716bdc82 100644 --- a/Example/main.js +++ b/Example/main.js @@ -3,9 +3,8 @@ * https://github.com/facebook/react-native */ 'use strict'; -import React, { +import { AppRegistry, - Component, StyleSheet, Text, View, @@ -16,6 +15,8 @@ import React, { Easing } from 'react-native'; +import React, {Component} from 'react'; + import { Svg, Circle, diff --git a/Example/package.json b/Example/package.json index 48f1c5230..d0001ef35 100644 --- a/Example/package.json +++ b/Example/package.json @@ -6,7 +6,7 @@ "start": "react-native start" }, "dependencies": { - "react-native": "^0.24.0", + "react-native": "^0.25.1", "react-native-svg": "../", "react-native-root-modal": "^1.0.3", "react": "^0.14.5" diff --git a/package.json b/package.json index cffa60b48..a063c3119 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "1.3.1", + "version": "2.0.0", "name": "react-native-svg", "description": "react native svg library", "repository": { @@ -20,6 +20,9 @@ "scripts": { "lint": "eslint ./" }, + "peerDependencies": { + "react-native": ">=0.25.1" + }, "dependencies": { "color": "^0.11.1", "lodash": "^4.0.0"