1 Star 0 Fork 6

bi-bigdata / react-native-init

forked from 罪. / react-native-init
关闭
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

What can I do

1、Create project based on react-native-cli.
2、Download android sdk automatically without android studio.
3、Create android emulator automatically without android studio.
4、Run npm start can launch android & ios simulator automatically.
5、Build android & ios app by shell script automatically.
6、Upload ios app to app-store by shell script automatically.
7、You don't need to care about how to install any more, just focus to write javascript code.

Requirements

  • macos
  • Install xcode 9+    lookup
  • Install node 8+    lookup
  • Install JDK 8+    lookup

Android Studio is not required. We will use shell script to install sdk-platforms and sdk-tools.

You'd better install jdk8, not jdk10. Because jdk10 may make your app crash.

Install

npm install -g react-native-cli@latest react-native-init@latest

Create project

Open terminal and type script:

react-native-init YourProjectName

And then run your project:

cd YourProjectName
npm start

Options

version {string}

You can specify the version you want, default value is the latest react-native version.

react-native-init YourProjectName --version=0.56.0

npm {boolean}

Using npm to install package whatever.

react-native-init YourProjectName --npm

If you don't append this parameter, we will check yarn at first, and then check npm when yarn is not installed.

Supported version

React-Native 0.55.4+

MIT License Copyright (c) 2018 原罪 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

基于官方react-native-cli初始化项目,并自动下载android sdk,自动创建android模拟器,融合诸多填坑实践。开发时也无需使用android studio启动模拟器,一切只需npm start。打包也无需打开android studio和xcode,已经写好shell脚本,可以一键打包和上传。 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/bi-bigdata/react-native-init.git
git@gitee.com:bi-bigdata/react-native-init.git
bi-bigdata
react-native-init
react-native-init
master

搜索帮助