From bfcc39f73ebe236a9bdcf116dae04c51b9af4495 Mon Sep 17 00:00:00 2001 From: Horcrux Date: Fri, 22 Apr 2016 10:18:29 +0800 Subject: [PATCH] Add auto rnpm link in postinstall step --- Example/package.json | 23 ++++++++++++----------- package.json | 9 +++++++++ 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/Example/package.json b/Example/package.json index deb93ca6..48f1c523 100644 --- a/Example/package.json +++ b/Example/package.json @@ -1,13 +1,14 @@ { - "name": "ArtSvgExample", - "version": "0.0.1", - "private": true, - "scripts": { - "start": "react-native start" - }, - "dependencies": { - "react-native": "^0.24.0", - "react-native-svg": "../", - "react-native-root-modal": "^1.0.3" - } + "name": "ArtSvgExample", + "version": "0.0.1", + "private": true, + "scripts": { + "start": "react-native start" + }, + "dependencies": { + "react-native": "^0.24.0", + "react-native-svg": "../", + "react-native-root-modal": "^1.0.3", + "react": "^0.14.5" + } } diff --git a/package.json b/package.json index e21e5474..92e26130 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,15 @@ "svgpath": "^2.1.5", "lodash": "^4.0.0" }, + "scripts": { + "postinstall": "rnpm link react-native-svg" + }, + "nativePackage": true, + "rnpm": { + "ios": { + "project": "ios/RNSVG.xcodeproj" + } + }, "peerDependencies": { "react-native": "^0.24.0" }