问题
There is a library react-native-iron-source on GitHub. But this library is not in the npm.
How can I add the library to my react-native project manually? So that it works correctly with js code, iOS and Android?
回答1:
Try putting this in package.json
"dependencies": {
...
"react-native-iron-source": "git://github.com/bsy/react-native-iron-source.git"
},
来源:https://stackoverflow.com/questions/49650202/how-do-i-add-a-library-to-react-native-project-manually