General IM UI components. Android/iOS/RectNative ready. 通用 IM 聊天 UI 组件,已经同时支持 Android/iOS/RN。
其他改动:
简化 JS 代码,将 AndroidPtrLayout 与 MessageList 结合(原来 AndroidPtrLayout 的属性和方法移动到 MessageList),所有输入界面高度全部由 onSizeChange
控制。参考 ReactNative/sample/app 获得详细用法。
add auto-size feature for inputText. refer to onSizeChange .
This version does not automatically set the default avatar. if you need set default image ,If you need to deal with the default avatar, you need to pass the native avatar path to User.avatarPath.
messageListBackgroundColor
type: string
usage:// Android
<AndroidPtrLayout
messageListBackgroundColor={"#ffffff"}
/>
// iOS
<MessageList
messageListBackgroundColor={"ffffff"}
/>
chatInputBackgroupColor
type: string
usage:// Android & iOS
<ChatInput
chatInputBackgroupColor={"ffffff"}
/>
maxBubbleSize
type: number. Value should be zero to one. 1 means take the phone's width
usage:<MessageList
maxBubbleSize={0.7}
/>
Support many kinds of custom message without limit. Please refer to Custom Layout for more detail.
支持多种自定义消息。用法参考文档。