Skip to content

Commit 54f2093

Browse files
committed
feat: update readme for App Build and Development
1 parent 60254bc commit 54f2093

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,19 +263,24 @@ First, clone this repository. All app code is located in the `react-native` fold
263263
following command to download dependencies.
264264

265265
```bash
266-
cd react-native && npm i
266+
cd react-native && npm i && npm start
267267
```
268268

269269
### Build for Android
270270

271+
open a new terminal and execute:
272+
271273
```bash
272-
npm start && npm run android
274+
npm run android
273275
```
274276

275277
### Build for iOS
276278

279+
also open a new terminal, for the first time you need to install the native dependencies
280+
by execute `cd ios && pod install && cd ..`, then execute the follow command:
281+
277282
```bash
278-
npm start && npm run ios
283+
npm run ios
279284
```
280285

281286
### Build for macOS

README_CN.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,19 +249,23 @@ macOS 等多个平台。
249249
首先,克隆此仓库。所有 App 代码位于 react-native 文件夹中。在继续之前,请执行以下命令来下载依赖项。
250250

251251
```bash
252-
cd react-native && npm i
252+
cd react-native && npm i && npm start
253253
```
254254

255255
### 构建 Android
256256

257+
在新的终端中执行:
258+
257259
```bash
258-
npm start && npm run android
260+
npm run android
259261
```
260262

261263
## 构建 iOS
262264

265+
先打开一个新的终端,如果是第一次运行,请先执行 `cd ios && pod install && cd ..` 来安装原生依赖,然后运行:
266+
263267
```bash
264-
npm start && npm run ios
268+
npm run ios
265269
```
266270

267271
### 构建 macOS

0 commit comments

Comments
 (0)