We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
目前React-Native的开发环境对Linux和Windows支持的不是特别好,尤其Windows。 另外,xcode是跨不过去的坎。所以,Mac还是必备的。
目前React-Native只支持iOS 7 和 Android 4.1(api 16) +
brew install watchman
brew install flow
npm install -g react-native-cli
react-native init AwesomeProj
cd AwesomeProj open ios/AwesomeProj.xcodeproj
cd AwesomeProj react-native run-android #或者使用Android Studio
➜ CoolApp tree -L 1 . ├── android ├── index.android.js ├── index.ios.js ├── ios ├── node_modules └── package.json
3 directories, 3 files
android:Android工程目录 iOS: iOS工程目录 node_module:npm的依赖目录 index.android.js: android项目的js入口文件 index.ios.js:ios项目的js入口文件 package.json: 类似mvn的pom.xml文件,定义js的项目依赖
The text was updated successfully, but these errors were encountered:
第一次安装的时候,一直阻塞npm,配置了淘宝镜像也没有,后来人品爆发才安装好,第一次可以考人家的node_modules解决
Sorry, something went wrong.
@javascala 这个暂时无解,我也试了很多办法,包括我们内部也是搭建了私服。可以拷贝。
No branches or pull requests
先决条件
目前React-Native的开发环境对Linux和Windows支持的不是特别好,尤其Windows。
另外,xcode是跨不过去的坎。所以,Mac还是必备的。
搭建开发环境
快速安装项目脚手架
创建项目
running iOS
cd AwesomeProj open ios/AwesomeProj.xcodeproj
running Android
项目结构
➜ CoolApp tree -L 1
.
├── android
├── index.android.js
├── index.ios.js
├── ios
├── node_modules
└── package.json
3 directories, 3 files
android:Android工程目录
iOS: iOS工程目录
node_module:npm的依赖目录
index.android.js: android项目的js入口文件
index.ios.js:ios项目的js入口文件
package.json: 类似mvn的pom.xml文件,定义js的项目依赖
The text was updated successfully, but these errors were encountered: