Skip to content

Commit 784b92e

Browse files
author
HuyDo
committed
feat: [FC-14] custom audio message
1 parent a2d2894 commit 784b92e

File tree

23 files changed

+1976
-19
lines changed

23 files changed

+1976
-19
lines changed

example/android/app/src/main/AndroidManifest.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
22

33
<uses-permission android:name="android.permission.INTERNET" />
4+
<uses-permission android:name="android.permission.CAMERA" />
5+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
6+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
47

8+
<!-- optionally, if you want to record audio: -->
9+
<uses-permission android:name="android.permission.RECORD_AUDIO" />
510
<application
11+
android:requestLegacyExternalStorage="true"
612
android:name=".MainApplication"
713
android:label="@string/app_name"
814
android:icon="@mipmap/ic_launcher"

package.json

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rn-firebase-chat",
3-
"version": "0.1.0",
3+
"version": "0.1.2",
44
"description": "test",
55
"main": "src/index.ts",
66
"types": "lib/typescript/index.d.ts",
@@ -15,6 +15,7 @@
1515
"typecheck": "tsc --noEmit",
1616
"lint": "eslint \"**/*.{js,ts,tsx}\"",
1717
"prepack": "bob build",
18+
"prepare": "bob build",
1819
"release": "release-it",
1920
"example": "yarn --cwd example",
2021
"bootstrap": "yarn example && yarn install && yarn example pods"
@@ -143,11 +144,25 @@
143144
]
144145
},
145146
"dependencies": {
146-
"@react-native-firebase/app": "^18.6.1",
147-
"@react-native-firebase/firestore": "^18.6.1",
148-
"@react-native-firebase/storage": "^18.6.1",
147+
"@react-native-community/slider": "^4.5.2",
148+
"@react-native-firebase/app": "^20.1.0",
149+
"@react-native-firebase/firestore": "^20.1.0",
150+
"@react-native-firebase/storage": "^20.1.0",
151+
"@types/react-native-doc-viewer": "^2.7.6",
152+
"@types/uuid": "^9.0.8",
149153
"randomcolor": "^0.6.2",
150154
"react-native-aes-crypto": "^2.1.1",
151-
"react-native-gifted-chat": "^2.4.0"
155+
"react-native-audio-recorder-player": "3.6.4",
156+
"react-native-doc-viewer": "^2.7.8",
157+
"react-native-document-picker": "^9.3.0",
158+
"react-native-fast-image": "^8.6.3",
159+
"react-native-fs": "^2.20.0",
160+
"react-native-gifted-chat": "^2.4.0",
161+
"react-native-image-picker": "^7.1.2",
162+
"react-native-svg": "^15.3.0",
163+
"react-native-uuid": "^2.0.2",
164+
"react-native-video": "^6.2.0",
165+
"react-native-vision-camera": "^4.1.0",
166+
"uuid": "^10.0.0"
152167
}
153168
}

src/Chat/ChatProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
import { GiftedChat, GiftedChatProps } from 'react-native-gifted-chat';
1010
import { FirestoreServices } from '../Services/Firestore';
1111
// import CustomMessageView from './Component/CustomMessageView';
12-
import { formatEncryptedMessageData, formatMessageData } from '../Utilities';
12+
import { formatEncryptedMessageData, formatMessageData } from '../utilities';
1313
import TypingIndicator from 'react-native-gifted-chat/lib/TypingIndicator';
1414
// import { PhotoGalleryView } from './Component/PhotoGalleryView';
1515
import { TYPING_TIMEOUT_SECONDS } from './constanst';
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export * from './CustomBubble';
2+
export * from './CustomImageVideoBubble';
3+
export * from './CustomDocumentBubble';
4+
export * from './CustomBubbleVoice';
5+
export * from './DoubleTap';

src/Services/Firestore/chat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
formatEncryptedMessageData,
1010
formatMessageData,
1111
generateKey,
12-
} from '../../Utilities';
12+
} from '../../utilities';
1313
import type {
1414
ConversationProps,
1515
MemberProps,

src/Services/Firestore/firestore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
formatEncryptedMessageData,
88
formatMessageData,
99
generateKey,
10-
} from '../../Utilities';
10+
} from '../../utilities';
1111
import {
1212
ConversationProps,
1313
FireStoreCollection,

0 commit comments

Comments
 (0)