mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-03 15:14:18 +00:00
Add auto rnpm link in postinstall step
This commit is contained in:
+12
-11
@@ -1,13 +1,14 @@
|
|||||||
{
|
{
|
||||||
"name": "ArtSvgExample",
|
"name": "ArtSvgExample",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "react-native start"
|
"start": "react-native start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react-native": "^0.24.0",
|
"react-native": "^0.24.0",
|
||||||
"react-native-svg": "../",
|
"react-native-svg": "../",
|
||||||
"react-native-root-modal": "^1.0.3"
|
"react-native-root-modal": "^1.0.3",
|
||||||
}
|
"react": "^0.14.5"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,6 +22,15 @@
|
|||||||
"svgpath": "^2.1.5",
|
"svgpath": "^2.1.5",
|
||||||
"lodash": "^4.0.0"
|
"lodash": "^4.0.0"
|
||||||
},
|
},
|
||||||
|
"scripts": {
|
||||||
|
"postinstall": "rnpm link react-native-svg"
|
||||||
|
},
|
||||||
|
"nativePackage": true,
|
||||||
|
"rnpm": {
|
||||||
|
"ios": {
|
||||||
|
"project": "ios/RNSVG.xcodeproj"
|
||||||
|
}
|
||||||
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react-native": "^0.24.0"
|
"react-native": "^0.24.0"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user