Skip to content

Commit

Permalink
update docs add custom message
Browse files Browse the repository at this point in the history
  • Loading branch information
huangminlinux committed Nov 20, 2017
1 parent 02d7514 commit 1931742
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ReactNative/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ message = { // custom message
status: "send_failed",
isOutgoing: true,
contentSize: {height: 100, width: 100},
content: "<h1>custom message will render html string</h1>"
content: "<h1>custom message will render html string</h1>" // content is html string, NOTE: Don't contain <script>.
fromUser: {},
extras: {}// Optional: you could add a extras object to this message
}
Expand Down
5 changes: 2 additions & 3 deletions ReactNative/README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ message = { // video message
druation: number,
mediaPath: "voice path",
fromUser: {},

extras: {}// 选填,可以在消息中添加附加字段
}

Expand All @@ -127,9 +126,9 @@ message = { // custom message
status: "send_failed",
isOutgoing: true,
contentSize: {height: 100, width: 100},
content: "<h1>custom message will render html string</h1>"
content: "<h1>custom message will render html string</h1>", // content 为 html 字符串,应尽量避免 <script> 标签
fromUser: {},
extras: {}// Optional: you could add a extras object to this message
extras: {}// 选填,可以在消息中添加附加字段
}

message = { // event message
Expand Down

0 comments on commit 1931742

Please sign in to comment.