@cometchat/chat-uikit-react-native 4.3.22-t1 → 4.3.23
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
|
@@ -406,7 +406,7 @@ export const CometChatMessageHeader = (
|
|
|
406
406
|
};
|
|
407
407
|
}, []);
|
|
408
408
|
|
|
409
|
-
const
|
|
409
|
+
const AppBarOptionsView = useCallback(() => {
|
|
410
410
|
if (AppBarOptions) {
|
|
411
411
|
return (
|
|
412
412
|
<AppBarOptions
|
|
@@ -515,9 +515,7 @@ export const CometChatMessageHeader = (
|
|
|
515
515
|
: null
|
|
516
516
|
: null
|
|
517
517
|
}
|
|
518
|
-
TailView={
|
|
519
|
-
AppBarOptionsComp
|
|
520
|
-
}
|
|
518
|
+
TailView={AppBarOptionsView}
|
|
521
519
|
headViewContainerStyle={headViewContainerStyle}
|
|
522
520
|
tailViewContainerStyle={tailViewContainerStyle}
|
|
523
521
|
avatarStyle={_avatarStyle}
|
|
@@ -2,7 +2,8 @@ import React, { useState, useContext, useEffect, useRef } from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
View,
|
|
4
4
|
Text,
|
|
5
|
-
TextStyle
|
|
5
|
+
TextStyle,
|
|
6
|
+
Modal
|
|
6
7
|
} from 'react-native';
|
|
7
8
|
//@ts-ignore
|
|
8
9
|
import { CometChat } from '@cometchat/chat-sdk-react-native';
|
|
@@ -214,7 +215,14 @@ export const CometChatIncomingCall = (props: CometChatIncomingCallInterface) =>
|
|
|
214
215
|
}, []);
|
|
215
216
|
|
|
216
217
|
return (
|
|
217
|
-
|
|
218
|
+
<Modal
|
|
219
|
+
transparent
|
|
220
|
+
animated
|
|
221
|
+
animationType="fade"
|
|
222
|
+
onRequestClose={() => {
|
|
223
|
+
return;
|
|
224
|
+
}}
|
|
225
|
+
>
|
|
218
226
|
{
|
|
219
227
|
showCallScreen ?
|
|
220
228
|
<CometChatOngoingCall
|
|
@@ -277,6 +285,6 @@ export const CometChatIncomingCall = (props: CometChatIncomingCallInterface) =>
|
|
|
277
285
|
}}
|
|
278
286
|
/>
|
|
279
287
|
}
|
|
280
|
-
|
|
288
|
+
</Modal>
|
|
281
289
|
)
|
|
282
290
|
};
|
|
@@ -221,7 +221,12 @@ export const CometChatOutgoingCall = (props: CometChatOutgoingCallInterface) =>
|
|
|
221
221
|
transparent
|
|
222
222
|
animated
|
|
223
223
|
animationType="fade"
|
|
224
|
-
onRequestClose={() =>
|
|
224
|
+
onRequestClose={() => {
|
|
225
|
+
if (isCallConnected) {
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
onDeclineButtonPressed && onDeclineButtonPressed(call as CometChat.Call)
|
|
229
|
+
}}
|
|
225
230
|
>
|
|
226
231
|
<SafeAreaView>
|
|
227
232
|
{
|