@developer_tribe/react-native-comnyx 0.3.9 → 0.3.11
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/lib/commonjs/components/ChatList.js +166 -147
- package/lib/commonjs/components/ChatList.js.map +1 -1
- package/lib/commonjs/components/CustomerForm.js +175 -168
- package/lib/commonjs/components/CustomerForm.js.map +1 -1
- package/lib/commonjs/components/MessageItem.js +2 -1
- package/lib/commonjs/components/MessageItem.js.map +1 -1
- package/lib/commonjs/constants/translations.js +15 -15
- package/lib/commonjs/constants/translations.js.map +1 -1
- package/lib/module/components/ChatList.js +168 -149
- package/lib/module/components/ChatList.js.map +1 -1
- package/lib/module/components/CustomerForm.js +177 -170
- package/lib/module/components/CustomerForm.js.map +1 -1
- package/lib/module/components/MessageItem.js +2 -1
- package/lib/module/components/MessageItem.js.map +1 -1
- package/lib/module/constants/translations.js +15 -15
- package/lib/module/constants/translations.js.map +1 -1
- package/lib/typescript/commonjs/src/components/ChatList.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/CustomerForm.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/constants/translations.d.ts.map +1 -1
- package/lib/typescript/module/src/components/ChatList.d.ts.map +1 -1
- package/lib/typescript/module/src/components/CustomerForm.d.ts.map +1 -1
- package/lib/typescript/module/src/constants/translations.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/ChatList.tsx +207 -176
- package/src/components/CustomerForm.tsx +202 -188
- package/src/components/MessageItem.tsx +1 -0
- package/src/constants/translations.ts +15 -24
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["LocalizationList","en","tr","es","fr","de","it","pt","ru","ja","zh"],"sourceRoot":"../../../src","sources":["constants/translations.ts"],"mappings":";;AAGA,OAAO,MAAMA,gBAAwD,GAAG;EACtEC,EAAE,EAAE;IACF,qBAAqB,EAAE,SAAS;IAChC,oBAAoB,EAAE,WAAW;IACjC,qBAAqB,EAAE,qBAAqB;IAC5C,qBAAqB,EAAE,mBAAmB;IAC1C,uBAAuB,EAAE,SAAS;IAClC,sBAAsB,EAAE,aAAa;IACrC,qBAAqB,EAAE,oCAAoC;IAC3D,4BAA4B,
|
|
1
|
+
{"version":3,"names":["LocalizationList","en","tr","es","fr","de","it","pt","ru","ja","zh"],"sourceRoot":"../../../src","sources":["constants/translations.ts"],"mappings":";;AAGA,OAAO,MAAMA,gBAAwD,GAAG;EACtEC,EAAE,EAAE;IACF,qBAAqB,EAAE,SAAS;IAChC,oBAAoB,EAAE,WAAW;IACjC,qBAAqB,EAAE,qBAAqB;IAC5C,qBAAqB,EAAE,mBAAmB;IAC1C,uBAAuB,EAAE,SAAS;IAClC,sBAAsB,EAAE,aAAa;IACrC,qBAAqB,EAAE,oCAAoC;IAC3D,4BAA4B,EAAE,sBAAsB;IACpD,6BAA6B,EAAE,qBAAqB;IACpD,2BAA2B,EAAE,yBAAyB;IACtD,2BAA2B,EAAE,mBAAmB;IAChD,gCAAgC,EAAE,iBAAiB;IACnD,mCAAmC,EAAE,oBAAoB;IACzD,iCAAiC,EAAE,kBAAkB;IACrD,iCAAiC,EAAE,yBAAyB;IAC5D,+BAA+B,EAAE,sBAAsB;IACvD,6BAA6B,EAAE,yBAAyB;IACxD,iBAAiB,EAAE,uCAAuC;IAC1D,iBAAiB,EAAE,yCAAyC;IAC5D,YAAY,EAAE,iBAAiB;IAC/B,wCAAwC,EACtC,oCAAoC;IACtC,wCAAwC,EACtC,mCAAmC;IACrC,4CAA4C,EAC1C,mCAAmC;IACrC,yCAAyC,EACvC,sCAAsC;IACxC,kBAAkB,EAAE,sBAAsB;IAC1C,wBAAwB,EAAE,4CAA4C;IACtE,WAAW,EAAE,WAAW;IACxB,mBAAmB,EAAE,cAAc;IACnC,sBAAsB,EAAE,QAAQ;IAChC,gCAAgC,EAAE,gBAAgB;IAClD,sCAAsC,EACpC,iDAAiD;IACnD,kBAAkB,EAAE,QAAQ;IAC5B,2BAA2B,EAAE,YAAY;IACzC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E,cAAc;IACxD,wCAAwC,EAAE,YAAY;IACtD,4CAA4C,EAAE,aAAa;IAC3D,yCAAyC,EAAE,aAAa;IACxD,kBAAkB,EAAE,QAAQ;IAC5B,wBAAwB,EAAE,cAAc;IACxC,WAAW,EAAE,MAAM;IACnB,mBAAmB,EAAE,MAAM;IAC3B,sBAAsB,EAAE,MAAM;IAC9B,gCAAgC,EAAE,MAAM;IACxC,sCAAsC,EAAE,aAAa;IACrD,kBAAkB,EAAE,IAAI;IACxB,2BAA2B,EAAE,MAAM;IACnC,gCAAgC,EAAE,UAAU;IAC5C,4BAA4B,EAAE,QAAQ;IACtC,iCAAiC,EAAE,YAAY;IAC/C,4BAA4B,EAAE,QAAQ;IACtC,iCAAiC,EAAE,YAAY;IAC/C,sBAAsB,EAAE;EAC1B;AACF,CAAU","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatList.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatList.tsx"],"names":[],"mappings":"AAwCA,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"ChatList.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatList.tsx"],"names":[],"mappings":"AAwCA,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,2CAwnB3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomerForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/CustomerForm.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CustomerForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/CustomerForm.tsx"],"names":[],"mappings":"AAoCA,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,2CAuR9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../../src/constants/translations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,YAAY,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../../src/constants/translations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,YAAY,EAAE,gBAAgB,CAwd1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatList.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatList.tsx"],"names":[],"mappings":"AAwCA,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"ChatList.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatList.tsx"],"names":[],"mappings":"AAwCA,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,2CAwnB3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomerForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/CustomerForm.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CustomerForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/CustomerForm.tsx"],"names":[],"mappings":"AAoCA,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,2CAuR9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../../src/constants/translations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,YAAY,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../../src/constants/translations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,YAAY,EAAE,gBAAgB,CAwd1D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@developer_tribe/react-native-comnyx",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.11",
|
|
4
4
|
"description": "React Native chat component with integrated support panel, enabling real-time customer communication and efficient agent workflow management.",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
Image,
|
|
9
9
|
TouchableOpacity,
|
|
10
10
|
Keyboard,
|
|
11
|
+
StatusBar,
|
|
11
12
|
} from 'react-native';
|
|
12
13
|
import { getCustomerConversation, sendCustomerMessage } from '../api';
|
|
13
14
|
import type { AppConversationMessage } from '../types/Conversation';
|
|
@@ -21,7 +22,6 @@ import CustomPopup from './CustomAlert';
|
|
|
21
22
|
import type { LocalizationKeys } from '../types/LocalizationKeys';
|
|
22
23
|
import { ScaledSheet } from './ScaledSheet';
|
|
23
24
|
import { formatDate } from '../utils/formatDate';
|
|
24
|
-
import { viewabilityConfig } from '../viewabilityConfig';
|
|
25
25
|
import { activeOpacity } from '../constants/activeOpacity';
|
|
26
26
|
|
|
27
27
|
const headphonesIcon = require('../assets/headphones-01.png');
|
|
@@ -63,6 +63,9 @@ export function ChatList({ onBack }: { onBack?: () => void }) {
|
|
|
63
63
|
const [popupVisible, setPopupVisible] = useState(false);
|
|
64
64
|
const [selectedMessage, setSelectedMessage] = useState<string>('');
|
|
65
65
|
const [currentSection, setCurrentSection] = useState<string>('');
|
|
66
|
+
const lastSectionChangeTime = useRef<number>(0);
|
|
67
|
+
const pendingSectionRef = useRef<string | null>(null);
|
|
68
|
+
const MIN_SECTION_CHANGE_INTERVAL = 150;
|
|
66
69
|
|
|
67
70
|
const sections = useMemo(() => {
|
|
68
71
|
if (!data || data.length === 0) return [];
|
|
@@ -296,32 +299,41 @@ export function ChatList({ onBack }: { onBack?: () => void }) {
|
|
|
296
299
|
[]
|
|
297
300
|
);
|
|
298
301
|
|
|
299
|
-
const
|
|
300
|
-
(
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
302
|
+
const updateSectionSafely = useCallback(
|
|
303
|
+
(newSection: string) => {
|
|
304
|
+
const now = Date.now();
|
|
305
|
+
const timeSinceLastChange = now - lastSectionChangeTime.current;
|
|
306
|
+
|
|
307
|
+
// If this is a different section than current and pending
|
|
308
|
+
if (
|
|
309
|
+
newSection !== currentSection &&
|
|
310
|
+
newSection !== pendingSectionRef.current
|
|
311
|
+
) {
|
|
312
|
+
// If we recently changed the section, queue this change
|
|
313
|
+
if (timeSinceLastChange < MIN_SECTION_CHANGE_INTERVAL) {
|
|
314
|
+
// Store the pending section
|
|
315
|
+
pendingSectionRef.current = newSection;
|
|
316
|
+
|
|
317
|
+
// Schedule an update after the minimum interval has passed
|
|
318
|
+
setTimeout(() => {
|
|
319
|
+
// Only update if pending section hasn't changed again
|
|
320
|
+
if (pendingSectionRef.current === newSection) {
|
|
321
|
+
setCurrentSection(newSection);
|
|
322
|
+
lastSectionChangeTime.current = Date.now();
|
|
323
|
+
pendingSectionRef.current = null;
|
|
309
324
|
}
|
|
310
|
-
}
|
|
325
|
+
}, MIN_SECTION_CHANGE_INTERVAL - timeSinceLastChange);
|
|
326
|
+
} else {
|
|
327
|
+
// Enough time has passed, update immediately
|
|
328
|
+
setCurrentSection(newSection);
|
|
329
|
+
lastSectionChangeTime.current = now;
|
|
330
|
+
pendingSectionRef.current = null;
|
|
311
331
|
}
|
|
312
332
|
}
|
|
313
333
|
},
|
|
314
334
|
[currentSection]
|
|
315
335
|
);
|
|
316
336
|
|
|
317
|
-
const viewabilityConfigCallbackPairs = useRef([
|
|
318
|
-
{
|
|
319
|
-
viewabilityConfig,
|
|
320
|
-
onViewableItemsChanged: handleViewabilityChange,
|
|
321
|
-
},
|
|
322
|
-
]);
|
|
323
|
-
|
|
324
|
-
// We'll use onScroll instead of onMomentumScrollEnd for more responsive updates
|
|
325
337
|
const handleScroll = useCallback(
|
|
326
338
|
(event: any) => {
|
|
327
339
|
const currentScrollY = event.nativeEvent.contentOffset.y;
|
|
@@ -330,60 +342,65 @@ export function ChatList({ onBack }: { onBack?: () => void }) {
|
|
|
330
342
|
|
|
331
343
|
setIsScrollingUp(currentScrollY > 300);
|
|
332
344
|
|
|
333
|
-
//
|
|
334
|
-
if (sections && sections.length > 0
|
|
335
|
-
|
|
336
|
-
let
|
|
337
|
-
let maxVisibility = 0;
|
|
345
|
+
// Determine the section at the bottom of the window based on scroll position
|
|
346
|
+
if (sections && sections.length > 0) {
|
|
347
|
+
let accumulatedHeight = 0;
|
|
348
|
+
let lastVisibleSection = null;
|
|
338
349
|
|
|
339
|
-
//
|
|
350
|
+
// Check all sections
|
|
340
351
|
for (let i = 0; i < sections.length; i++) {
|
|
341
352
|
const section = sections[i];
|
|
342
353
|
if (!section || !section.data) continue;
|
|
343
354
|
|
|
344
|
-
|
|
345
|
-
const
|
|
346
|
-
|
|
347
|
-
//
|
|
348
|
-
const
|
|
349
|
-
const
|
|
350
|
-
|
|
351
|
-
//
|
|
352
|
-
const visibleTop =
|
|
353
|
-
const visibleBottom =
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
if (
|
|
361
|
-
|
|
362
|
-
visibleSectionIndex = i;
|
|
355
|
+
// Calculate section height
|
|
356
|
+
const sectionHeight = section.data.length * (MESSAGE_MIN_HEIGHT + 10);
|
|
357
|
+
|
|
358
|
+
// Section positions
|
|
359
|
+
const sectionStart = accumulatedHeight;
|
|
360
|
+
const sectionEnd = sectionStart + sectionHeight;
|
|
361
|
+
|
|
362
|
+
// Visible area
|
|
363
|
+
const visibleTop = currentScrollY;
|
|
364
|
+
const visibleBottom = visibleTop + scrollViewHeight;
|
|
365
|
+
|
|
366
|
+
// Find the section visible at the bottom of the screen
|
|
367
|
+
const isSectionVisibleAtBottom =
|
|
368
|
+
(visibleBottom >= sectionStart && visibleBottom <= sectionEnd) ||
|
|
369
|
+
(sectionStart <= visibleTop && sectionEnd >= visibleBottom);
|
|
370
|
+
|
|
371
|
+
if (isSectionVisibleAtBottom) {
|
|
372
|
+
lastVisibleSection = section;
|
|
363
373
|
}
|
|
374
|
+
|
|
375
|
+
accumulatedHeight += sectionHeight;
|
|
364
376
|
}
|
|
365
377
|
|
|
366
|
-
//
|
|
367
|
-
if (
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
+
// Display the found section using our safe updater
|
|
379
|
+
if (
|
|
380
|
+
lastVisibleSection?.title &&
|
|
381
|
+
lastVisibleSection.title !== currentSection
|
|
382
|
+
) {
|
|
383
|
+
updateSectionSafely(lastVisibleSection.title);
|
|
384
|
+
} else if (
|
|
385
|
+
!lastVisibleSection &&
|
|
386
|
+
currentScrollY <= 10 &&
|
|
387
|
+
sections[0]?.title
|
|
388
|
+
) {
|
|
389
|
+
updateSectionSafely(sections[0].title);
|
|
378
390
|
}
|
|
379
391
|
}
|
|
380
392
|
|
|
381
|
-
// Check if we need to load more data
|
|
382
393
|
if (currentScrollY >= contentHeight - scrollViewHeight - 200) {
|
|
383
394
|
nextPage();
|
|
384
395
|
}
|
|
385
396
|
},
|
|
386
|
-
[
|
|
397
|
+
[
|
|
398
|
+
nextPage,
|
|
399
|
+
sections,
|
|
400
|
+
currentSection,
|
|
401
|
+
MESSAGE_MIN_HEIGHT,
|
|
402
|
+
updateSectionSafely,
|
|
403
|
+
]
|
|
387
404
|
);
|
|
388
405
|
|
|
389
406
|
const scrollToBottom = useCallback(
|
|
@@ -482,6 +499,13 @@ export function ChatList({ onBack }: { onBack?: () => void }) {
|
|
|
482
499
|
};
|
|
483
500
|
}, []);
|
|
484
501
|
|
|
502
|
+
// Clear pending updates on unmount
|
|
503
|
+
useEffect(() => {
|
|
504
|
+
return () => {
|
|
505
|
+
pendingSectionRef.current = null;
|
|
506
|
+
};
|
|
507
|
+
}, []);
|
|
508
|
+
|
|
485
509
|
if (nexPageFailed) {
|
|
486
510
|
return (
|
|
487
511
|
<View
|
|
@@ -513,131 +537,138 @@ export function ChatList({ onBack }: { onBack?: () => void }) {
|
|
|
513
537
|
}
|
|
514
538
|
|
|
515
539
|
return (
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
>
|
|
524
|
-
<Image
|
|
525
|
-
source={closeIcon}
|
|
526
|
-
style={[styles.closeIcon, { tintColor: themeColors.text }]}
|
|
527
|
-
/>
|
|
528
|
-
</TouchableOpacity>
|
|
540
|
+
<>
|
|
541
|
+
<StatusBar
|
|
542
|
+
barStyle={'dark-content'}
|
|
543
|
+
backgroundColor={themeColors.background}
|
|
544
|
+
animated={false}
|
|
545
|
+
translucent
|
|
546
|
+
/>
|
|
529
547
|
<View
|
|
530
|
-
style={[
|
|
531
|
-
styles.headerContainer,
|
|
532
|
-
{
|
|
533
|
-
backgroundColor: themeColors.background,
|
|
534
|
-
borderBottomColor: themeColors.lavender,
|
|
535
|
-
},
|
|
536
|
-
]}
|
|
548
|
+
style={[styles.container, { backgroundColor: themeColors.background }]}
|
|
537
549
|
>
|
|
538
|
-
<
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
550
|
+
<TouchableOpacity
|
|
551
|
+
style={[styles.iconContainer]}
|
|
552
|
+
onPress={onBack}
|
|
553
|
+
activeOpacity={activeOpacity}
|
|
554
|
+
>
|
|
555
|
+
<Image
|
|
556
|
+
source={closeIcon}
|
|
557
|
+
style={[styles.closeIcon, { tintColor: themeColors.text }]}
|
|
558
|
+
/>
|
|
559
|
+
</TouchableOpacity>
|
|
542
560
|
<View
|
|
543
561
|
style={[
|
|
544
|
-
styles.
|
|
545
|
-
{
|
|
562
|
+
styles.headerContainer,
|
|
563
|
+
{
|
|
564
|
+
backgroundColor: themeColors.background,
|
|
565
|
+
borderBottomColor: themeColors.lavender,
|
|
566
|
+
},
|
|
546
567
|
]}
|
|
547
568
|
>
|
|
548
|
-
<Image
|
|
549
|
-
source={headphonesIcon}
|
|
550
|
-
style={[styles.headphonesIcon, { tintColor: themeColors.text }]}
|
|
551
|
-
/>
|
|
552
569
|
<AppText
|
|
553
|
-
localization="chat.
|
|
554
|
-
style={[styles.
|
|
570
|
+
localization="chat.support-team"
|
|
571
|
+
style={[styles.header, { color: themeColors.text }]}
|
|
555
572
|
/>
|
|
556
|
-
<View
|
|
573
|
+
<View
|
|
574
|
+
style={[
|
|
575
|
+
styles.headerText,
|
|
576
|
+
{ backgroundColor: themeColors.background },
|
|
577
|
+
]}
|
|
578
|
+
>
|
|
579
|
+
<Image
|
|
580
|
+
source={headphonesIcon}
|
|
581
|
+
style={[styles.headphonesIcon, { tintColor: themeColors.text }]}
|
|
582
|
+
/>
|
|
583
|
+
<AppText
|
|
584
|
+
localization="chat.live"
|
|
585
|
+
style={[styles.liveChat, { color: themeColors.text }]}
|
|
586
|
+
/>
|
|
587
|
+
<View
|
|
588
|
+
style={[styles.dot, { backgroundColor: themeColors.green }]}
|
|
589
|
+
/>
|
|
590
|
+
</View>
|
|
557
591
|
</View>
|
|
558
|
-
</View>
|
|
559
592
|
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
593
|
+
<View style={styles.listContainer}>
|
|
594
|
+
<AppText
|
|
595
|
+
style={[
|
|
596
|
+
styles.dateText,
|
|
597
|
+
{ color: themeColors.slate, backgroundColor: themeColors.ghost },
|
|
598
|
+
]}
|
|
599
|
+
>
|
|
600
|
+
{currentSection}
|
|
601
|
+
</AppText>
|
|
602
|
+
|
|
603
|
+
<SectionList
|
|
604
|
+
ref={ref}
|
|
605
|
+
sections={sections}
|
|
606
|
+
inverted
|
|
607
|
+
renderItem={renderItem}
|
|
608
|
+
contentContainerStyle={[
|
|
609
|
+
styles.contentContainer,
|
|
610
|
+
{ backgroundColor: themeColors.background },
|
|
611
|
+
]}
|
|
612
|
+
style={styles.list}
|
|
613
|
+
ListEmptyComponent={
|
|
614
|
+
!loading && (!sections || sections.length === 0) ? (
|
|
615
|
+
<EmptyList />
|
|
616
|
+
) : null
|
|
617
|
+
}
|
|
618
|
+
ListFooterComponent={loading ? <LoadingItem /> : null}
|
|
619
|
+
keyExtractor={(item: AppConversationMessage) =>
|
|
620
|
+
item.id + '-' + item.created_at
|
|
621
|
+
}
|
|
622
|
+
removeClippedSubviews={false}
|
|
623
|
+
maxToRenderPerBatch={20}
|
|
624
|
+
windowSize={21}
|
|
625
|
+
initialNumToRender={MESSAGES_PER_PAGE}
|
|
626
|
+
getItemLayout={(_: any, index: number) => ({
|
|
627
|
+
length: MESSAGE_MIN_HEIGHT + 10,
|
|
628
|
+
offset: (MESSAGE_MIN_HEIGHT + 10) * index,
|
|
629
|
+
index,
|
|
630
|
+
})}
|
|
631
|
+
onScroll={handleScroll}
|
|
632
|
+
scrollEventThrottle={1}
|
|
633
|
+
stickySectionHeadersEnabled={false}
|
|
634
|
+
/>
|
|
635
|
+
</View>
|
|
636
|
+
{isScrollingUp && (
|
|
637
|
+
<TouchableOpacity
|
|
638
|
+
activeOpacity={activeOpacity}
|
|
639
|
+
style={[
|
|
640
|
+
styles.scrollDownButton,
|
|
641
|
+
{ backgroundColor: themeColors.ghost },
|
|
642
|
+
isKeyboardVisible && styles.scrollDownButtonWithKeyboard,
|
|
643
|
+
]}
|
|
644
|
+
onPress={() => scrollToBottom(true)}
|
|
645
|
+
>
|
|
646
|
+
<Image
|
|
647
|
+
source={require('../assets/down.png')}
|
|
648
|
+
style={[styles.scrollUpIcon, { tintColor: themeColors.text }]}
|
|
649
|
+
/>
|
|
650
|
+
</TouchableOpacity>
|
|
651
|
+
)}
|
|
652
|
+
<MessageInput
|
|
653
|
+
scrollToBottom={scrollToBottom}
|
|
654
|
+
selectedMessage={selectedMessage}
|
|
655
|
+
/>
|
|
656
|
+
<CustomPopup
|
|
657
|
+
isVisible={popupVisible}
|
|
658
|
+
onClose={() => setPopupVisible(false)}
|
|
659
|
+
title={'chat.list-failed-message.title'}
|
|
660
|
+
description={'chat.list-failed-message.description'}
|
|
661
|
+
onCancelButton={() => {
|
|
662
|
+
setPopupVisible(false);
|
|
663
|
+
}}
|
|
664
|
+
onResendButton={() => {
|
|
665
|
+
resendMessage();
|
|
666
|
+
setPopupVisible(false);
|
|
667
|
+
}}
|
|
668
|
+
buttonText={'chat.list-cancel' as keyof LocalizationKeys}
|
|
604
669
|
/>
|
|
605
670
|
</View>
|
|
606
|
-
|
|
607
|
-
<TouchableOpacity
|
|
608
|
-
activeOpacity={activeOpacity}
|
|
609
|
-
style={[
|
|
610
|
-
styles.scrollDownButton,
|
|
611
|
-
{ backgroundColor: themeColors.ghost },
|
|
612
|
-
isKeyboardVisible && styles.scrollDownButtonWithKeyboard,
|
|
613
|
-
]}
|
|
614
|
-
onPress={() => scrollToBottom(true)}
|
|
615
|
-
>
|
|
616
|
-
<Image
|
|
617
|
-
source={require('../assets/down.png')}
|
|
618
|
-
style={[styles.scrollUpIcon, { tintColor: themeColors.text }]}
|
|
619
|
-
/>
|
|
620
|
-
</TouchableOpacity>
|
|
621
|
-
)}
|
|
622
|
-
<MessageInput
|
|
623
|
-
scrollToBottom={scrollToBottom}
|
|
624
|
-
selectedMessage={selectedMessage}
|
|
625
|
-
/>
|
|
626
|
-
<CustomPopup
|
|
627
|
-
isVisible={popupVisible}
|
|
628
|
-
onClose={() => setPopupVisible(false)}
|
|
629
|
-
title={'chat.list-failed-message.title'}
|
|
630
|
-
description={'chat.list-failed-message.description'}
|
|
631
|
-
onCancelButton={() => {
|
|
632
|
-
setPopupVisible(false);
|
|
633
|
-
}}
|
|
634
|
-
onResendButton={() => {
|
|
635
|
-
resendMessage();
|
|
636
|
-
setPopupVisible(false);
|
|
637
|
-
}}
|
|
638
|
-
buttonText={'chat.list-cancel' as keyof LocalizationKeys}
|
|
639
|
-
/>
|
|
640
|
-
</View>
|
|
671
|
+
</>
|
|
641
672
|
);
|
|
642
673
|
}
|
|
643
674
|
|
|
@@ -751,12 +782,12 @@ const styles = ScaledSheet.create({
|
|
|
751
782
|
alignSelf: 'center',
|
|
752
783
|
marginVertical: '8@vs',
|
|
753
784
|
},
|
|
754
|
-
|
|
785
|
+
dateText: {
|
|
755
786
|
fontSize: '14@vs',
|
|
756
787
|
fontWeight: '500',
|
|
757
|
-
borderRadius: '
|
|
758
|
-
paddingHorizontal: '
|
|
759
|
-
paddingVertical: '
|
|
788
|
+
borderRadius: '12@s',
|
|
789
|
+
paddingHorizontal: '8@s',
|
|
790
|
+
paddingVertical: '2@s',
|
|
760
791
|
position: 'absolute',
|
|
761
792
|
top: '10@vs',
|
|
762
793
|
zIndex: 10,
|