Skip to content

Commit

Permalink
Add auto rnpm link in postinstall step
Browse files Browse the repository at this point in the history
  • Loading branch information
magicismight committed Apr 22, 2016
1 parent 2e9334f commit bfcc39f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
23 changes: 12 additions & 11 deletions Example/package.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit bfcc39f

Please sign in to comment.