agora-appbuilder-core 4.0.17 → 4.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-appbuilder-core",
3
- "version": "4.0.17",
3
+ "version": "4.0.19",
4
4
  "description": "React Native template for RTE app builder",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -926,7 +926,7 @@ const defaultItems: ToolbarDefaultItem[] = [
926
926
  hide: 'no',
927
927
  },
928
928
  {
929
- align: 'start',
929
+ align: 'center',
930
930
  component: RaiseHandToolbarItem,
931
931
  componentName: 'raise-hand',
932
932
  order: 0,
@@ -20,6 +20,7 @@ import {
20
20
  ChatMessage,
21
21
  ChatMessageChatType,
22
22
  } from 'react-native-agora-chat';
23
+ import {isAndroid} from '../../utils/common';
23
24
 
24
25
  import {
25
26
  chatUploadErrorToastHeading,
@@ -159,7 +160,9 @@ export const ChatAttachmentButton = (props: ChatAttachmentButtonProps) => {
159
160
  msgId: message.msgId,
160
161
  isDeleted: false,
161
162
  type: message.body.type,
162
- thumb: message.body?.localPath,
163
+ thumb: isAndroid()
164
+ ? 'file://' + message.body?.localPath
165
+ : message.body?.localPath,
163
166
  url: message.body?.remotePath,
164
167
  ext: message.attributes?.file_ext,
165
168
  fileName: message.attributes?.file_name,
@@ -115,7 +115,7 @@ export const ChatAttachmentButton = (props: ChatAttachmentButtonProps) => {
115
115
  <>
116
116
  <input
117
117
  type="file"
118
- accept="image/jpeg, image/png, image/gif, image/bmp, .zip, .txt, .doc, .pdf, .docx, .ppt, .pptx, .xls, .xlsx .csv"
118
+ accept="image/jpeg, image/png, image/gif, image/bmp, .zip, .txt, .doc, .pdf, .docx, .ppt, .pptx, .xls, .xlsx, .csv"
119
119
  onChange={handleFileUpload}
120
120
  style={{display: 'none'}}
121
121
  id={`file-input-`}