Skip to content

Commit 9140ff3

Browse files
committed
doc: update development.md
1 parent 95965a4 commit 9140ff3

File tree

2 files changed

+53
-17
lines changed

2 files changed

+53
-17
lines changed

development.en-US.md

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## Environment
44

55
```
6-
node = 10+
7-
npm = 3+
6+
node = 16.20.0+
7+
npm = 8.19.4+
88
```
99

1010
## Code convention for @ant-design/react-native
@@ -18,13 +18,13 @@ $ npm run lint
1818
### Directory Structure
1919

2020
```
21-
├── AUTHORS.txt authors
2221
├── CHANGELOG.xxx.md changelog document
2322
├── LICENSE license
2423
├── README.md readme document
2524
├── components components source code
2625
├── development.xxx.md development document
2726
├── docs other docs
27+
├── example Expo demo project source code
2828
├── rn-kitchen-sink RN demo project source code
2929
├── scripts scripts for development
3030
├── site offical website source code
@@ -101,15 +101,33 @@ exports.demo = BasicButtonExample;
101101

102102
## Development
103103

104+
- **Running On Expo**
105+
106+
> node >= 18
107+
108+
```bash
109+
# go to expo example folder
110+
cd example
111+
112+
# install dependencies
113+
npx expo install
114+
115+
# start expo
116+
npm start
117+
```
118+
119+
- **Running On react-native-cli**
120+
104121
```bash
122+
# clone
105123
$ npm install
106124

107-
# In one terminal tab
108-
$ npm run rn-start
125+
# start ios
126+
cd rn-kitchen-sink/ios && pod install
127+
$ npm run ios
109128

110-
# Open one ios/android simulator
111-
# Open another terminal tab
112-
$ npm run ios / android
129+
# start android
130+
$ npm run android
113131
```
114132

115133
The code of demo app: https://github.com/ant-design/ant-design-mobile-rn/tree/master/rn-kitchen-sink

development.zh-CN.md

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## 环境
44

55
```
6-
node = 10+
7-
npm = 3+
6+
node = 16.20.0+
7+
npm = 8.19.4+
88
```
99

1010
## 代码风格
@@ -18,13 +18,13 @@ $ npm run lint
1818
### 目录结构
1919

2020
```
21-
├── AUTHORS.txt 作者
2221
├── CHANGELOG.xxx.md 变更记录文档
2322
├── LICENSE 许可证
2423
├── README.md 自述文档
2524
├── components 组件代码
2625
├── development.xxx.md 开发说明文档
2726
├── docs 其他文档
27+
├── example Expo示例工程代码
2828
├── rn-kitchen-sink RN示例工程代码
2929
├── scripts 辅助脚本
3030
├── site 官网代码
@@ -101,20 +101,38 @@ exports.demo = BasicButtonExample;
101101

102102
## 开发流程
103103

104+
- **使用 expo-cli 运行**
105+
106+
> node >= 18
107+
108+
```bash
109+
# go to expo example folder
110+
cd example
111+
112+
# install dependencies
113+
npx expo install
114+
115+
# start expo
116+
npm start
117+
```
118+
119+
- **使用 react-native-cli 运行**
120+
104121
```bash
122+
# clone
105123
$ npm install
106124

107-
# In one terminal tab
108-
$ npm run rn-start
125+
# start ios
126+
cd rn-kitchen-sink/ios && pod install
127+
$ npm run ios
109128

110-
# Open one ios/android simulator
111-
# Open another terminal tab
112-
$ npm run ios / android
129+
# start android
130+
$ npm run android
113131
```
114132

115133
demo app 代码地址:https://github.com/ant-design/ant-design-mobile-rn/tree/master/rn-kitchen-sink
116134

117-
If you need to add a new component, then modify `rn-kitchen-sink/demoList.js` and `./index.js`.
135+
如果需要添加新组件,则修改`rn​​-kitchen-sink/demoList.js``./index.js`
118136

119137
### 提交代码
120138

0 commit comments

Comments
 (0)