白衣染霜花
1、进入你工程的根目录2、npm init (这个工作跟cocoapods的podfile文件初始化有点像)-> 根据提示输入工程的package.json的内容。3、npm install经过上述的步骤之后工程根目录底下就有了react-native的环境了。然后此时要导入的redux框架,这时候只要往dependcies中增加:"name": "RNIntergrationDemo","version": "0.0.1","private": true,"scripts": {"start": "node node_modules/react-native/local-cli/cli.js start","test": "jest"},"dependencies": {"react": "15.4.1","react-native": "0.39.2","redux":"3.6.0"},"devDependencies": {"babel-jest": "18.0.0","babel-preset-react-native": "1.9.1","jest": "18.1.0","react-test-renderer": "15.4.1"},"jest": {"preset": "react-native"}(然后接着时通过cocoapods导入。。。)