File tree Expand file tree Collapse file tree 2 files changed +53
-17
lines changed Expand file tree Collapse file tree 2 files changed +53
-17
lines changed Original file line number Diff line number Diff line change 3
3
## Environment
4
4
5
5
```
6
- node = 10 +
7
- npm = 3 +
6
+ node = 16.20.0 +
7
+ npm = 8.19.4 +
8
8
```
9
9
10
10
## Code convention for @ant-design/react-native
@@ -18,13 +18,13 @@ $ npm run lint
18
18
### Directory Structure
19
19
20
20
```
21
- ├── AUTHORS.txt authors
22
21
├── CHANGELOG.xxx.md changelog document
23
22
├── LICENSE license
24
23
├── README.md readme document
25
24
├── components components source code
26
25
├── development.xxx.md development document
27
26
├── docs other docs
27
+ ├── example Expo demo project source code
28
28
├── rn-kitchen-sink RN demo project source code
29
29
├── scripts scripts for development
30
30
├── site offical website source code
@@ -101,15 +101,33 @@ exports.demo = BasicButtonExample;
101
101
102
102
## Development
103
103
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
+
104
121
``` bash
122
+ # clone
105
123
$ npm install
106
124
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
109
128
110
- # Open one ios/android simulator
111
- # Open another terminal tab
112
- $ npm run ios / android
129
+ # start android
130
+ $ npm run android
113
131
```
114
132
115
133
The code of demo app: https://github.com/ant-design/ant-design-mobile-rn/tree/master/rn-kitchen-sink
Original file line number Diff line number Diff line change 3
3
## 环境
4
4
5
5
```
6
- node = 10 +
7
- npm = 3 +
6
+ node = 16.20.0 +
7
+ npm = 8.19.4 +
8
8
```
9
9
10
10
## 代码风格
@@ -18,13 +18,13 @@ $ npm run lint
18
18
### 目录结构
19
19
20
20
```
21
- ├── AUTHORS.txt 作者
22
21
├── CHANGELOG.xxx.md 变更记录文档
23
22
├── LICENSE 许可证
24
23
├── README.md 自述文档
25
24
├── components 组件代码
26
25
├── development.xxx.md 开发说明文档
27
26
├── docs 其他文档
27
+ ├── example Expo示例工程代码
28
28
├── rn-kitchen-sink RN示例工程代码
29
29
├── scripts 辅助脚本
30
30
├── site 官网代码
@@ -101,20 +101,38 @@ exports.demo = BasicButtonExample;
101
101
102
102
## 开发流程
103
103
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
+
104
121
``` bash
122
+ # clone
105
123
$ npm install
106
124
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
109
128
110
- # Open one ios/android simulator
111
- # Open another terminal tab
112
- $ npm run ios / android
129
+ # start android
130
+ $ npm run android
113
131
```
114
132
115
133
demo app 代码地址:https://github.com/ant-design/ant-design-mobile-rn/tree/master/rn-kitchen-sink
116
134
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 ` 。
118
136
119
137
### 提交代码
120
138
You can’t perform that action at this time.
0 commit comments