Skip to content

Commit

Permalink
update react native docs
Browse files Browse the repository at this point in the history
  • Loading branch information
huangminlinux committed Jun 9, 2017
1 parent b4b2e58 commit bbf6f84
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ReactNative/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions ReactNative/README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bbf6f84

Please sign in to comment.