From b45805b4cf9ad69fc371f6b7203aa4356b908768 Mon Sep 17 00:00:00 2001 From: magicismight Date: Thu, 3 Aug 2017 14:54:13 +0800 Subject: [PATCH 1/3] Add support for 0.47.0 --- README.md | 1 + package.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9c4eb537..fa6f24c5 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ - react-native-svg >= 5.1.8 only supports react-native >= 0.44.0 and react == 16.0.0-alpha.6 - react-native-svg >= 5.2.0 only supports react-native >= 0.45.0 and react == 16.0.0-alpha.12 - react-native-svg >= 5.3.0 only supports react-native >= 0.46.0 and react == 16.0.0-alpha.12 + - react-native-svg >= 5.4.0 only supports react-native >= 0.47.0 and react == 16.0.0-alpha.12 2. Link native code diff --git a/package.json b/package.json index 960dcee0..bc623dff 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "5.3.1", + "version": "5.4.0", "name": "react-native-svg", "description": "SVG library for react-native", "repository": { @@ -22,7 +22,7 @@ "lint": "eslint ./" }, "peerDependencies": { - "react-native": ">=0.46.0", + "react-native": ">=0.47.0", "react": "16.0.0-alpha.12", "prop-types": "^15.5.8" }, From 60e22ac5a2803cc4d766e12fa0ad6ed0f62d7bd5 Mon Sep 17 00:00:00 2001 From: magicismight Date: Thu, 3 Aug 2017 14:55:30 +0800 Subject: [PATCH 2/3] Bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 960dcee0..22065228 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "5.3.1", + "version": "5.3.3", "name": "react-native-svg", "description": "SVG library for react-native", "repository": { From 294cda65afd33301a60c8868e866044f3769a54a Mon Sep 17 00:00:00 2001 From: magicismight Date: Thu, 3 Aug 2017 15:31:11 +0800 Subject: [PATCH 3/3] Just remove @Override symbol to support both 0.46.0 and 0.47.0 --- README.md | 1 - android/src/main/java/com/horcrux/svg/SvgPackage.java | 4 ++++ package.json | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fa6f24c5..9c4eb537 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,6 @@ - react-native-svg >= 5.1.8 only supports react-native >= 0.44.0 and react == 16.0.0-alpha.6 - react-native-svg >= 5.2.0 only supports react-native >= 0.45.0 and react == 16.0.0-alpha.12 - react-native-svg >= 5.3.0 only supports react-native >= 0.46.0 and react == 16.0.0-alpha.12 - - react-native-svg >= 5.4.0 only supports react-native >= 0.47.0 and react == 16.0.0-alpha.12 2. Link native code diff --git a/android/src/main/java/com/horcrux/svg/SvgPackage.java b/android/src/main/java/com/horcrux/svg/SvgPackage.java index 278ab13a..bfeb7d9a 100644 --- a/android/src/main/java/com/horcrux/svg/SvgPackage.java +++ b/android/src/main/java/com/horcrux/svg/SvgPackage.java @@ -48,4 +48,8 @@ public class SvgPackage implements ReactPackage { public List createNativeModules(ReactApplicationContext reactContext) { return Collections.singletonList(new SvgViewModule(reactContext)); } + + public List> createJSModules() { + return Collections.emptyList(); + } } diff --git a/package.json b/package.json index bc623dff..d8020ce5 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "5.4.0", + "version": "5.4.1", "name": "react-native-svg", "description": "SVG library for react-native", "repository": { @@ -22,7 +22,7 @@ "lint": "eslint ./" }, "peerDependencies": { - "react-native": ">=0.47.0", + "react-native": ">=0.46.0", "react": "16.0.0-alpha.12", "prop-types": "^15.5.8" },