Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions docs/document/react-native/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
5. 进入工程根目录,执行 `yarn && yarn prepare` 安装依赖和创建本地配置文件。
6. 更改配置文件(`examples/product-uikit-demo/src/env.ts`)内容, 设置 appKey 的值,其他字段有默认值。
7. 设置推送配置文件。如果没有,可以使用模板文件保证编译运行没有问题。如果有,则使用自己的配置文件。详见 [Firebase 相关文档](https://rnfirebase.io/)。
- Android 平台拷贝命令为 `cp -f templates/google-services.json.template examples/product-uikit-demo/android/app/google-services.json`。
- Android 平台拷贝命令为 `cp -f templates/google-services.json.template examples/product-uikit-demo/android/app/google-services.json && cp -f templates/debug.keystore.template examples/product-uikit-demo/android/app/debug.keystore`。
- iOS 平台拷贝命令为 `cp templates/GoogleService-Info.plist.template examples/product-uikit-demo/ios/ChatUikitFullExample/GoogleService-Info.plist`。
8. 进入目录 `examples/product-uikit-demo`, 运行 `yarn android` 或 `yarn ios` 运行 Demo。
9. 启动本地服务 `yarn run start`,默认端口 8081。
Expand All @@ -59,8 +59,7 @@ App Server 为 Demo 提供以下功能:
你可通过以下步骤部署 App Server:

1. 部署 App Server。详见 [服务端源码](https://github.com/easemob/easemob-im-app-server/tree/dev-demo)。
2. 在 Demo 工程根目录下 `local.properties` 文件中,填写 App Server 的域名或 IP 地址,格式为 `APP_SERVER_DOMAIN = 服务器域名或ip地址`。
3. 在 Demo 工程根目录下 `local.properties` 文件中,填入 `LOGIN_WITH_APPSERVER = true`,即通知 Demo 工程需要启用 App Server,体验完整功能。
2. 修改 文件 `examples/product-uikit-demo/src/env.ts` 中的内容 `useAppServerDomain = true` 。

**服务端中的 App Key 要跟客户端的 App Key 保持一致。**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

环信 ChatroomUIKit 提供 UIKit 的各种组件帮助开发者根据实际业务需求快速搭建聊天室应用。通过该 UIKit,聊天室中的用户可实时交互,发送普通弹幕消息、打赏消息和全局广播等功能。

- 若要访问源码,请点击[这里](https://github.com/easemob/UIKit_Chatroom_rn)
- 若要访问源码,请点击[这里](https://github.com/easemob/easemob-uikit-reactnative)。在 `packages/react-native-chat-room` 文件夹下

- 你可以扫描以下 Android 和 iOS 平台的二维码体验环信聊天室 UIKit demo:

Expand Down
2 changes: 2 additions & 0 deletions docs/uikit/chatuikit/react-native/chatuikit_quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ react-native-safe-area-context \
react-native-video
```

*react-native-audio-recorder-player 这个三方库已经过期,但是它推荐的三方库目前问题较多,所以,建议继续使用该三方库,版本小于 3.6.14*

## 第四步 添加权限

添加必要的应用权限。
Expand Down