File tree Expand file tree Collapse file tree 1 file changed +10
-14
lines changed
docs/document/react-native Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change 37
37
- Watchman 调试工具
38
38
- 运行环境真机或模拟器 Android 6.0 或以上版本
39
39
40
- 配置开发或者运行环境如果遇到问题,请参考 [ RN 官网] ( https://reactnative.dev/ ) 。
40
+ 配置开发或者运行环境如果遇到问题,请参考 [ React Native 官网] ( https://reactnative.dev/ ) 。
41
41
42
42
### 其他要求
43
43
44
44
有效的环信即时通讯 IM 开发者账号和 App key,见 [ 环信即时通讯云管理后台] ( https://console.easemob.com/user/login ) 。
45
45
46
46
## 项目设置
47
47
48
- 创建一个 React Native 项目并将集成进去
48
+ 创建一个 React Native 项目,集成 IM SDK:
49
49
50
50
1 . 根据开发系统和目标平台准备开发环境;
51
51
2 . 打开终端,进入需要创建项目的目录,输入命令创建 React Native 项目:
@@ -64,7 +64,7 @@ yarn set version 1.22.19
64
64
yarn
65
65
```
66
66
67
- _ 可以使用 npm 等其他工具,根据个人喜好 _
67
+ 同时,你也可以使用 npm 等其他工具。
68
68
69
69
3 . 在终端命令行,输入以下命令添加依赖:
70
70
@@ -412,13 +412,13 @@ export default App;
412
412
413
413
## 编译和运行项目
414
414
415
- 编译运行 ios 平台应用:
415
+ 编译运行 iOS 平台应用:
416
416
417
417
``` sh
418
418
yarn run ios
419
419
```
420
420
421
- 编译运行 android 平台应用:
421
+ 编译运行 Android 平台应用:
422
422
423
423
``` sh
424
424
yarn run android
@@ -430,15 +430,11 @@ yarn run android
430
430
yarn run start
431
431
```
432
432
433
- ### 截图
433
+ 下图为 Android 和 iOS 平台的效果展示:
434
434
435
- ios:
436
-
437
- ![ img] ( /images/react-native/ios-1.png )
438
-
439
- android:
440
-
441
- ![ img] ( /images/react-native/android-1.png )
435
+ | Android | iOS |
436
+ | :--------- | :----- |
437
+ | <img src=/images/react-native/android-1.png width="300" height="700"/> | <img src=/images/react-native/ios-1.png width="300" height="700"/> |
442
438
443
439
## 测试你的 app
444
440
@@ -448,7 +444,7 @@ android:
448
444
2 . 在另外设备可以登录另外一个用户。
449
445
3 . 第一个用户,编辑消息并点击 ** 发送** ,第二个用户将接收消息。
450
446
451
- _ 同时你可以在下方查看日志, 检查注册,登录,发送消息是否成功。_
447
+ 同时,你可以在下方查看日志, 检查注册,登录,发送消息是否成功。
452
448
453
449
## 更多操作
454
450
You can’t perform that action at this time.
0 commit comments