From bbf6f84c7ba109b7967e612624f48fac2b908e72 Mon Sep 17 00:00:00 2001 From: huangminlinux <380108184@qq.com> Date: Fri, 9 Jun 2017 15:30:56 +0800 Subject: [PATCH] update react native docs --- ReactNative/README.md | 9 ++++++--- ReactNative/README_zh.md | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ReactNative/README.md b/ReactNative/README.md index e1f8ce81..cc799cf8 100644 --- a/ReactNative/README.md +++ b/ReactNative/README.md @@ -234,9 +234,12 @@ AuroraIMUIModule.insertMessagesToTop(messages); ### MessageList custom style -**In android, if your want to define your chatting bubble, you need to put a drawable file -in drawable folder, and that image file must be [nine patch drawable file](https://developer.android.com/reference/android/graphics/drawable/NinePatchDrawable.html), -see our example for detail.** +**In android, if your want to define your chatting bubble, you need to put a drawable file in drawable folder, and that image file must be [nine patch drawable file](https://developer.android.com/reference/android/graphics/drawable/NinePatchDrawable.html), see our example for detail.** + + + +**In iOS, if your want to define your chatting bubble,you need to put a image file to you xcode,and specifies ` sendBubble.imageName` or `receiveBubble.imageName` to image name. if you need to set the default avatar, you need put you default avatar image to you xcode,and adjust the image name to `defoult_header`,see our example for detail.** + - sendBubble: PropTypes.object : ``` // eg: diff --git a/ReactNative/README_zh.md b/ReactNative/README_zh.md index cff83bde..4c3f5f9b 100644 --- a/ReactNative/README_zh.md +++ b/ReactNative/README_zh.md @@ -244,6 +244,7 @@ AuroraIMUIModule.insertMessagesToTop(messages); ### MessageList 自定义样式 **在 Android 中,如果你想要自定义消息气泡,你需要将一张点九图放在 drawable 文件夹下。 [点九图介绍](https://developer.android.com/reference/android/graphics/drawable/NinePatchDrawable.html),详情参考 sample。** +**在 iOS 中,如果想自定义消息气泡,需要把消息气泡图片加入到工程中,然后再 sendBubble.imageName 指定图片名字。 如果需要替换默认头像,需要把自己的默认头像加入到 xcode 工程中,并且图片名字改为 defoult_header ,详情参考 sample。** - sendBubble: PropTypes.object: ``` // eg: