File tree 4 files changed +19
-6
lines changed
4 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 1
1
# im-client
2
+ ## 运行项目
3
+ 安装依赖
4
+ ``` shell
5
+ npm install
6
+ ```
7
+ 运行
8
+ ``` shell
9
+ react-native run-ios
10
+ // or
11
+ react-native run-android
12
+ ```
2
13
3
- ## 模式切换
4
- 通过更改 ` app.json ` 的 ` appMode ` 字段,进行组件调试模式(Demo)和 Im 模式(ImClient)的切换
14
+ ## 开发模式切换
15
+ 通过更改 ` app.json ` 的 ` appMode ` 字段,进行组件调试模式(` UiLibrary ` )和 Im 模式(` ImClient ` )的切换。
16
+ 所有基础组件在 ` UiLibrary ` 文件夹,与业务无关启动。
17
+ Im 功能代码在 ` src ` 文件夹内。
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ImClient" ,
3
3
"displayName" : " ImClient" ,
4
- "appMode" : " Demo "
4
+ "appMode" : " UiLibrary "
5
5
}
Original file line number Diff line number Diff line change @@ -20,6 +20,6 @@ const APP_INFO = require('./app.json');
20
20
21
21
if ( APP_INFO . appMode === 'ImClient' ) {
22
22
AppRegistry . registerComponent ( 'ImClient' , ( ) => ImClient ) ;
23
- } else if ( APP_INFO . appMode === 'Demo ' ) {
23
+ } else if ( APP_INFO . appMode === 'UiLibrary ' ) {
24
24
AppRegistry . registerComponent ( 'ImClient' , ( ) => Demo ) ;
25
25
}
Original file line number Diff line number Diff line change 10
10
*/
11
11
12
12
import {
13
- AppRegistry ,
13
+ AppRegistry ,
14
14
} from 'react-native' ;
15
15
16
16
import ImClient from './src/index.js' ;
@@ -20,6 +20,6 @@ const APP_INFO = require('./app.json');
20
20
21
21
if ( APP_INFO . appMode === 'ImClient' ) {
22
22
AppRegistry . registerComponent ( 'ImClient' , ( ) => ImClient ) ;
23
- } else if ( APP_INFO . appMode === 'Demo ' ) {
23
+ } else if ( APP_INFO . appMode === 'UiLibrary ' ) {
24
24
AppRegistry . registerComponent ( 'ImClient' , ( ) => Demo ) ;
25
25
}
You can’t perform that action at this time.
0 commit comments