@cometchat/chat-uikit-react-native 5.0.0-beta.1 → 5.0.0
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/README.md +2 -3
- package/android/.gradle/7.4/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
- package/android/src/main/java/com/reactnativecometchatuikit/CometChatSoundModule.java +29 -44
- package/android/src/main/java/com/reactnativecometchatuikit/SoundPlayer.java +12 -0
- package/ios/FileManager.m +26 -9
- package/package.json +11 -36
- package/src/CometChatConversations/CometChatConversations.tsx +287 -147
- package/src/CometChatConversations/Skeleton.tsx +116 -73
- package/src/CometChatConversations/style.ts +17 -22
- package/src/CometChatGroupMembers/CometChatGroupMembers.tsx +439 -227
- package/src/CometChatGroupMembers/style.ts +2 -4
- package/src/CometChatGroups/CometChatGroups.tsx +239 -135
- package/src/CometChatGroups/GroupsStyle.ts +20 -17
- package/src/CometChatGroups/Skeleton.tsx +198 -288
- package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +208 -73
- package/src/CometChatMessageHeader/CometChatMessageHeader.tsx +97 -43
- package/src/CometChatMessageInformation/CometChatMessageInformation.tsx +4 -2
- package/src/CometChatMessageList/CometChatMessageList.tsx +200 -76
- package/src/CometChatMessageList/style.ts +4 -4
- package/src/CometChatThreadHeader/CometChatThreadHeader.tsx +77 -11
- package/src/CometChatThreadHeader/style.ts +2 -2
- package/src/CometChatUsers/CometChatUsers.tsx +203 -51
- package/src/CometChatUsers/Skeleton.tsx +174 -159
- package/src/CometChatUsers/style.ts +21 -18
- package/src/calls/CallingConfiguration.ts +4 -3
- package/src/calls/CallingExtensionDecorator.tsx +5 -3
- package/src/calls/CometChatCallButtons/CometChatCallButtonConfiguration.ts +4 -2
- package/src/calls/CometChatCallButtons/CometChatCallButtons.tsx +10 -8
- package/src/calls/CometChatCallLogs/CometChatCallLogs.tsx +240 -97
- package/src/calls/CometChatCallLogs/Skeleton.tsx +175 -91
- package/src/calls/CometChatCallLogs/index.ts +1 -0
- package/src/calls/CometChatCallLogs/style.ts +85 -43
- package/src/calls/CometChatOutgoingCall/CometChatOutgoingCall.tsx +42 -29
- package/src/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.tsx +36 -10
- package/src/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.tsx +39 -12
- package/src/extensions/MessageTranslation/MessageTranslationDecorator.tsx +5 -4
- package/src/extensions/Polls/PollsDecorator.tsx +30 -9
- package/src/extensions/Stickers/StickersExtensionDecorator.tsx +34 -16
- package/src/index.ts +3 -1
- package/src/shared/base/Types.ts +31 -1
- package/src/shared/framework/DataSource.ts +64 -20
- package/src/shared/framework/DataSourceDecorator.tsx +46 -37
- package/src/shared/framework/MessageDataSource.tsx +518 -316
- package/src/shared/index.ts +3 -1
- package/src/shared/resources/CometChatLocalize/resources/ar/translation.json +3 -2
- package/src/shared/resources/CometChatLocalize/resources/de/translation.json +3 -2
- package/src/shared/resources/CometChatLocalize/resources/en/translation.json +3 -2
- package/src/shared/resources/CometChatLocalize/resources/es/translation.json +3 -2
- package/src/shared/resources/CometChatLocalize/resources/fr/translation.json +3 -2
- package/src/shared/resources/CometChatLocalize/resources/hi/translation.json +3 -2
- package/src/shared/resources/CometChatLocalize/resources/hu/translation.json +3 -2
- package/src/shared/resources/CometChatLocalize/resources/lt/translation.json +3 -2
- package/src/shared/resources/CometChatLocalize/resources/ms/translation.json +3 -2
- package/src/shared/resources/CometChatLocalize/resources/pt/translation.json +3 -2
- package/src/shared/resources/CometChatLocalize/resources/ru/translation.json +3 -2
- package/src/shared/resources/CometChatLocalize/resources/sv/translation.json +3 -2
- package/src/shared/resources/CometChatLocalize/resources/zh/translation.json +3 -2
- package/src/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +3 -2
- package/src/shared/utils/MessageUtils.tsx +41 -20
- package/src/shared/utils/conversationUtils.ts +2 -2
- package/src/shared/views/CometChatAvatar/CometChatAvatar.tsx +22 -1
- package/src/shared/views/CometChatBadge/CometChatBadge.tsx +20 -8
- package/src/shared/views/CometChatBottomSheet/CometChatBottomSheet.tsx +177 -123
- package/src/shared/views/CometChatConfirmDialog/CometChatConfirmDialog.tsx +76 -10
- package/src/shared/views/CometChatConfirmDialog/style.ts +2 -2
- package/src/shared/views/CometChatDate/CometChatDate.tsx +26 -18
- package/src/shared/views/CometChatDateSeperator/CometChatDateSeparator.tsx +22 -16
- package/src/shared/views/CometChatDeletedBubble/CometChatDeletedBubble.tsx +17 -5
- package/src/shared/views/CometChatFileBubble/CometChatFileBubble.tsx +65 -35
- package/src/shared/views/CometChatImageBubble/CometChatImageBubble.tsx +22 -11
- package/src/shared/views/CometChatImageBubble/CometChatImageLoader.tsx +47 -18
- package/src/shared/views/CometChatList/CometChatList.tsx +70 -46
- package/src/shared/views/CometChatList/Header.tsx +122 -37
- package/src/shared/views/CometChatList/styles.ts +1 -0
- package/src/shared/views/CometChatListItem/CometChatListItem.tsx +116 -30
- package/src/shared/views/CometChatMessageBubble/CometChatMessageBubble.tsx +52 -30
- package/src/shared/views/CometChatMessageInput/CometChatMessageInput.tsx +36 -22
- package/src/shared/views/CometChatQuickReactions/CometChatQuickReactions.tsx +41 -13
- package/src/shared/views/CometChatReactionList/CometChatReactionList.tsx +132 -17
- package/src/shared/views/CometChatReactions/CometChatReactions.tsx +30 -2
- package/src/shared/views/CometChatReceipt/CometChatReceipt.tsx +10 -6
- package/src/shared/views/CometChatStatusIndicator/CometChatStatusIndicator.tsx +20 -13
- package/src/shared/views/CometChatStatusIndicator/styles.ts +26 -13
- package/src/shared/views/CometChatSuggestionList/CometChatSuggestionList.tsx +25 -2
- package/src/shared/views/CometChatTextBubble/CometChatTextBubble.tsx +94 -14
- package/src/shared/views/CometChatTooltipMenu/CometChatTooltipMenu.tsx +52 -16
- package/src/shared/views/CometChatTooltipMenu/index.ts +2 -1
- package/src/shared/views/CometChatVideoBubble/CometChatVideoBubble.tsx +29 -9
- package/src/shared/views/CometChatVideoPlayer/CometChatVideoPlayer.tsx +20 -2
- package/src/shared/views/ErrorEmptyView/ErrorEmptyView.tsx +29 -14
- package/src/shared/views/index.ts +2 -0
- package/src/theme/default/index.ts +5 -5
- package/src/theme/type.ts +2 -2
- package/src/shared/views/CometChatPanel/CometChatPanel.tsx +0 -57
- package/src/shared/views/CometChatPanel/PanelStyle.tsx +0 -43
- package/src/shared/views/CometChatPanel/resources/CloseIcon.png +0 -0
- package/src/shared/views/CometChatPanel/resources/index.ts +0 -3
|
@@ -1,12 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skeleton.tsx
|
|
3
|
+
*
|
|
4
|
+
* A lightweight, theme-aware shimmer “skeleton” placeholder for
|
|
5
|
+
* CometChat conversation lists.
|
|
6
|
+
* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
|
7
|
+
* • 20 rows (top + bottom layers) drawn with react-native-svg.
|
|
8
|
+
* • Two Animated views slide across on a loop to create
|
|
9
|
+
* the shimmer illusion.
|
|
10
|
+
* • Colours, speed, opacity and gradient come from the active
|
|
11
|
+
* CometChatTheme but can be overridden per-instance via `style`.
|
|
12
|
+
*/
|
|
13
|
+
|
|
1
14
|
import React, { useEffect, useRef } from "react";
|
|
2
15
|
import { Animated, Dimensions, Easing, ScrollView, StyleSheet, View } from "react-native";
|
|
3
16
|
import Svg, { Defs, G, LinearGradient, Path, Stop } from "react-native-svg";
|
|
17
|
+
|
|
4
18
|
import { useTheme } from "../theme";
|
|
19
|
+
import { CometChatTheme } from "../theme/type";
|
|
5
20
|
|
|
21
|
+
// ───────────────────────────────────────────────────────────────
|
|
22
|
+
// Consts & Types
|
|
23
|
+
// ───────────────────────────────────────────────────────────────
|
|
6
24
|
const { width: screenWidth } = Dimensions.get("window");
|
|
25
|
+
const SKELETON_ROW_COUNT = 20; // How many rows to render
|
|
26
|
+
|
|
27
|
+
type SkeletonStyle = CometChatTheme["conversationStyles"]["skeletonStyle"];
|
|
7
28
|
|
|
8
|
-
|
|
29
|
+
interface SkeletonProps {
|
|
30
|
+
style?: SkeletonStyle; // Optional per-instance overrides
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// ───────────────────────────────────────────────────────────────
|
|
34
|
+
// Reusable SVG snippets
|
|
35
|
+
// ───────────────────────────────────────────────────────────────
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Bottom SVG layer – pure grey rectangles that will be *under* the shimmer.
|
|
39
|
+
*/
|
|
40
|
+
const SkeletonItemBottom: React.FC<SkeletonProps> = ({ style }) => {
|
|
9
41
|
const theme = useTheme();
|
|
42
|
+
|
|
10
43
|
return (
|
|
11
44
|
<Svg
|
|
12
45
|
height={screenWidth / 5}
|
|
@@ -15,24 +48,34 @@ const SkeletonItemBottom = () => {
|
|
|
15
48
|
preserveAspectRatio='xMidYMid meet'
|
|
16
49
|
>
|
|
17
50
|
<G>
|
|
18
|
-
<Path d='M64 12H16V60H64V12Z' fill='url(#
|
|
51
|
+
<Path d='M64 12H16V60H64V12Z' fill='url(#paint0_linear)' />
|
|
19
52
|
</G>
|
|
20
|
-
<Path d='M236 16.5H76V35.5H236V16.5Z' fill='url(#
|
|
21
|
-
<Path d='M344 16.5H284V35.5H344V16.5Z' fill='url(#
|
|
22
|
-
<Path d='M344 43.5H76V55.5H344V43.5Z' fill='url(#
|
|
53
|
+
<Path d='M236 16.5H76V35.5H236V16.5Z' fill='url(#paint0_linear)' />
|
|
54
|
+
<Path d='M344 16.5H284V35.5H344V16.5Z' fill='url(#paint0_linear)' />
|
|
55
|
+
<Path d='M344 43.5H76V55.5H344V43.5Z' fill='url(#paint0_linear)' />
|
|
56
|
+
|
|
57
|
+
{/* Gradient definition */}
|
|
23
58
|
<Defs>
|
|
24
59
|
<LinearGradient
|
|
25
|
-
id='
|
|
60
|
+
id='paint0_linear'
|
|
26
61
|
x1={16}
|
|
27
62
|
y1={36}
|
|
28
63
|
x2={64}
|
|
29
64
|
y2={36}
|
|
30
65
|
gradientUnits='userSpaceOnUse'
|
|
31
66
|
>
|
|
32
|
-
<Stop
|
|
67
|
+
<Stop
|
|
68
|
+
stopColor={
|
|
69
|
+
style?.linearGradientColors?.[0] ??
|
|
70
|
+
theme.conversationStyles.skeletonStyle.linearGradientColors[0]
|
|
71
|
+
}
|
|
72
|
+
/>
|
|
33
73
|
<Stop
|
|
34
74
|
offset={1}
|
|
35
|
-
stopColor={
|
|
75
|
+
stopColor={
|
|
76
|
+
style?.linearGradientColors?.[1] ??
|
|
77
|
+
theme.conversationStyles.skeletonStyle.linearGradientColors[1]
|
|
78
|
+
}
|
|
36
79
|
/>
|
|
37
80
|
</LinearGradient>
|
|
38
81
|
</Defs>
|
|
@@ -40,102 +83,102 @@ const SkeletonItemBottom = () => {
|
|
|
40
83
|
);
|
|
41
84
|
};
|
|
42
85
|
|
|
43
|
-
|
|
86
|
+
/**
|
|
87
|
+
* Top SVG “cookie-cutter” layer – punched out shapes that mask out the
|
|
88
|
+
* shimmer where content will eventually appear.
|
|
89
|
+
*/
|
|
90
|
+
const SkeletonItemTop: React.FC<SkeletonProps> = ({ style }) => {
|
|
44
91
|
const theme = useTheme();
|
|
92
|
+
|
|
45
93
|
return (
|
|
46
94
|
<Svg height={screenWidth / 5} viewBox='0 0 360 72' fill='none'>
|
|
95
|
+
{/* The giant path draws avatar circle + text bars */}
|
|
47
96
|
<Path
|
|
48
97
|
fillRule='evenodd'
|
|
49
98
|
clipRule='evenodd'
|
|
50
99
|
d='M0 0H360V72H0V0ZM16 36C16 22.7452 26.7452 12 40 12C53.2548 12 64 22.7452 64 36C64 49.2548 53.2548 60 40 60C26.7452 60 16 49.2548 16 36ZM84 16.5C79.5817 16.5 76 20.0817 76 24.5V27.5C76 31.9183 79.5817 35.5 84 35.5H228C232.418 35.5 236 31.9183 236 27.5V24.5C236 20.0817 232.418 16.5 228 16.5H84ZM284 24.5C284 20.0817 287.582 16.5 292 16.5H336C340.418 16.5 344 20.0817 344 24.5V27.5C344 31.9183 340.418 35.5 336 35.5H292C287.582 35.5 284 31.9183 284 27.5V24.5ZM82 43.5C78.6863 43.5 76 46.1863 76 49.5C76 52.8137 78.6863 55.5 82 55.5H338C341.314 55.5 344 52.8137 344 49.5C344 46.1863 341.314 43.5 338 43.5H82Z'
|
|
51
|
-
fill={
|
|
100
|
+
fill={
|
|
101
|
+
/* Mask must match background so the shimmer underneath shows */
|
|
102
|
+
style?.containerBackgroundColor ||
|
|
103
|
+
theme.conversationStyles.skeletonStyle.containerBackgroundColor
|
|
104
|
+
}
|
|
52
105
|
/>
|
|
53
106
|
</Svg>
|
|
54
107
|
);
|
|
55
108
|
};
|
|
56
109
|
|
|
57
|
-
|
|
110
|
+
// ───────────────────────────────────────────────────────────────
|
|
111
|
+
// Main Component
|
|
112
|
+
// ───────────────────────────────────────────────────────────────
|
|
113
|
+
export const Skeleton: React.FC<SkeletonProps> = ({ style }) => {
|
|
58
114
|
const theme = useTheme();
|
|
59
115
|
const animatedValue = useRef(new Animated.Value(0)).current;
|
|
60
116
|
|
|
117
|
+
/* Kick-off the shimmer animation once on mount */
|
|
61
118
|
useEffect(() => {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
Animated.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
startShimmer();
|
|
75
|
-
}, [animatedValue]);
|
|
119
|
+
animatedValue.setValue(0);
|
|
120
|
+
Animated.loop(
|
|
121
|
+
Animated.timing(animatedValue, {
|
|
122
|
+
toValue: 1,
|
|
123
|
+
duration: (1 / (style?.speed || theme.conversationStyles.skeletonStyle.speed)) * 1000,
|
|
124
|
+
easing: Easing.linear,
|
|
125
|
+
useNativeDriver: false, // translateX is layout-related
|
|
126
|
+
})
|
|
127
|
+
).start();
|
|
128
|
+
}, [animatedValue, style?.speed || theme.conversationStyles.skeletonStyle.speed]);
|
|
76
129
|
|
|
130
|
+
/* Map 0-1 → off-screen-left → off-screen-right */
|
|
77
131
|
const shimmerTranslateX = animatedValue.interpolate({
|
|
78
132
|
inputRange: [0, 1],
|
|
79
133
|
outputRange: [-screenWidth * 2, screenWidth],
|
|
80
134
|
});
|
|
81
135
|
|
|
136
|
+
/* Render ----------------------------------------------------- */
|
|
82
137
|
return (
|
|
83
138
|
<ScrollView showsVerticalScrollIndicator={false} scrollEnabled={false}>
|
|
84
|
-
{
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
},
|
|
117
|
-
]}
|
|
118
|
-
></Animated.View>
|
|
119
|
-
<View
|
|
120
|
-
style={{
|
|
121
|
-
position: "absolute",
|
|
122
|
-
top: 0,
|
|
123
|
-
left: 0,
|
|
124
|
-
right: 0,
|
|
125
|
-
bottom: 0,
|
|
126
|
-
}}
|
|
127
|
-
>
|
|
128
|
-
{new Array(20).fill(0).map((_, i) => {
|
|
129
|
-
return <SkeletonItemTop key={i} />;
|
|
130
|
-
})}
|
|
139
|
+
{/* Bottom layer rectangles */}
|
|
140
|
+
{Array.from({ length: SKELETON_ROW_COUNT }, (_, i) => (
|
|
141
|
+
<SkeletonItemBottom style={style} key={`bottom-${i}`} />
|
|
142
|
+
))}
|
|
143
|
+
|
|
144
|
+
{/* Two angled shimmer bars */}
|
|
145
|
+
{[0, screenWidth / 2].map((offset, i) => (
|
|
146
|
+
<Animated.View
|
|
147
|
+
key={`shimmer-${i}`}
|
|
148
|
+
style={[
|
|
149
|
+
styles.animatedView,
|
|
150
|
+
{
|
|
151
|
+
transform: [
|
|
152
|
+
{ translateX: Animated.add(shimmerTranslateX, offset) },
|
|
153
|
+
{ translateY: -20 },
|
|
154
|
+
{ rotate: "15deg" },
|
|
155
|
+
],
|
|
156
|
+
backgroundColor:
|
|
157
|
+
style?.shimmerBackgroundColor ??
|
|
158
|
+
theme.conversationStyles.skeletonStyle.shimmerBackgroundColor,
|
|
159
|
+
opacity:
|
|
160
|
+
style?.shimmerOpacity ?? theme.conversationStyles.skeletonStyle.shimmerOpacity,
|
|
161
|
+
},
|
|
162
|
+
]}
|
|
163
|
+
/>
|
|
164
|
+
))}
|
|
165
|
+
|
|
166
|
+
{/* Top mask layer – sits above shimmer to carve out shapes */}
|
|
167
|
+
<View style={StyleSheet.absoluteFill}>
|
|
168
|
+
{Array.from({ length: SKELETON_ROW_COUNT }, (_, i) => (
|
|
169
|
+
<SkeletonItemTop style={style} key={`top-${i}`} />
|
|
170
|
+
))}
|
|
131
171
|
</View>
|
|
132
172
|
</ScrollView>
|
|
133
173
|
);
|
|
134
174
|
};
|
|
135
175
|
|
|
176
|
+
// ───────────────────────────────────────────────────────────────
|
|
177
|
+
// Styles
|
|
178
|
+
// ───────────────────────────────────────────────────────────────
|
|
136
179
|
const styles = StyleSheet.create({
|
|
137
180
|
animatedView: {
|
|
138
|
-
width: "25%",
|
|
181
|
+
width: "25%", // narrow bar looks nicer at an angle
|
|
139
182
|
top: 0,
|
|
140
183
|
bottom: 0,
|
|
141
184
|
position: "absolute",
|
|
@@ -15,6 +15,7 @@ import { StatusIndicatorStyles } from "../shared/views/CometChatStatusIndicator"
|
|
|
15
15
|
import { CometChatTheme } from "../theme/type";
|
|
16
16
|
import { DeepPartial } from "../shared/helper/types";
|
|
17
17
|
import { CometChatListStylesInterface } from "../shared";
|
|
18
|
+
import { ConfirmDialogStyle } from "../shared/views/CometChatConfirmDialog/style";
|
|
18
19
|
|
|
19
20
|
export const Style = StyleSheet.create({
|
|
20
21
|
listContainer: {
|
|
@@ -37,19 +38,12 @@ export const Style = StyleSheet.create({
|
|
|
37
38
|
},
|
|
38
39
|
});
|
|
39
40
|
|
|
40
|
-
export type ConversationStyle = CometChatListStylesInterface & {
|
|
41
|
+
export type ConversationStyle = Omit<CometChatListStylesInterface, "searchStyle" | "sectionHeaderTextStyle"> & {
|
|
41
42
|
containerStyle: ViewStyle;
|
|
42
43
|
statusIndicatorStyles?: StatusIndicatorStyles;
|
|
43
44
|
typingIndicatorStyle: TextStyle;
|
|
44
45
|
titleStyle: TextStyle;
|
|
45
46
|
selectionIconStyle: ImageStyle;
|
|
46
|
-
searchStyle: {
|
|
47
|
-
textStyle: TextStyle;
|
|
48
|
-
placehodlerTextStyle?: TextStyle;
|
|
49
|
-
containerStyle: ViewStyle;
|
|
50
|
-
icon: ImageSourcePropType | JSX.Element;
|
|
51
|
-
iconStyle: ImageStyle;
|
|
52
|
-
};
|
|
53
47
|
emptyStateStyle: {
|
|
54
48
|
titleStyle: TextStyle;
|
|
55
49
|
subTitleStyle: TextStyle;
|
|
@@ -69,20 +63,21 @@ export type ConversationStyle = CometChatListStylesInterface & {
|
|
|
69
63
|
containerStyle: ViewStyle;
|
|
70
64
|
titleStyle: TextStyle;
|
|
71
65
|
subtitleStyle: TextStyle;
|
|
72
|
-
|
|
66
|
+
statusIndicatorStyle: Partial<StatusIndicatorStyles>;
|
|
73
67
|
badgeStyle: Partial<BadgeStyle>;
|
|
74
68
|
receiptStyles: Partial<ReceiptStyles>;
|
|
69
|
+
dateStyle: Partial<DateStyle>;
|
|
75
70
|
};
|
|
76
71
|
skeletonStyle: {
|
|
77
72
|
linearGradientColors: [string, string];
|
|
78
73
|
shimmerBackgroundColor: ColorValue;
|
|
79
74
|
shimmerOpacity: number;
|
|
80
75
|
speed: number;
|
|
76
|
+
containerBackgroundColor: ColorValue;
|
|
81
77
|
};
|
|
82
|
-
dateStyles: Partial<DateStyle>;
|
|
83
78
|
mentionsStyles: CometChatTheme["mentionsStyle"];
|
|
84
79
|
headerContainerStyle?: ViewStyle;
|
|
85
|
-
|
|
80
|
+
confirmDialogStyle: DeepPartial<ConfirmDialogStyle>
|
|
86
81
|
};
|
|
87
82
|
|
|
88
83
|
export const getConversationStyleLight = (
|
|
@@ -147,15 +142,18 @@ export const getConversationStyleLight = (
|
|
|
147
142
|
headerContainerStyle: {
|
|
148
143
|
borderBottomColor: color.borderDefault,
|
|
149
144
|
borderBottomWidth: 1,
|
|
145
|
+
alignItems: "flex-start",
|
|
146
|
+
justifyContent: "center",
|
|
147
|
+
width: "100%",
|
|
148
|
+
borderRadius: 0,
|
|
150
149
|
},
|
|
151
150
|
} as const,
|
|
152
151
|
{
|
|
153
152
|
itemStyle: {
|
|
154
153
|
containerStyle: {
|
|
155
154
|
flexDirection: "row",
|
|
156
|
-
paddingHorizontal: spacing.padding.
|
|
155
|
+
paddingHorizontal: spacing.padding.p2,
|
|
157
156
|
paddingVertical: spacing.padding.p3,
|
|
158
|
-
gap: spacing.spacing.s3,
|
|
159
157
|
},
|
|
160
158
|
titleStyle: {
|
|
161
159
|
color: color.textPrimary,
|
|
@@ -190,24 +188,24 @@ export const getConversationStyleLight = (
|
|
|
190
188
|
shimmerBackgroundColor: color.staticBlack,
|
|
191
189
|
shimmerOpacity: 0.01,
|
|
192
190
|
speed: 1,
|
|
191
|
+
containerBackgroundColor: color.background2,
|
|
193
192
|
},
|
|
194
193
|
statusIndicatorStyles: {},
|
|
195
|
-
|
|
194
|
+
dateStyle: {},
|
|
196
195
|
receiptStyles: {},
|
|
197
196
|
mentionsStyles: {
|
|
198
197
|
textStyle: {
|
|
199
198
|
...typography.body.bold,
|
|
200
199
|
color: color.receiveBubbleTextHighlight,
|
|
201
|
-
// backgroundColor: "#6852D633",
|
|
202
|
-
// paddingHorizontal: spacing.padding.p0_5,
|
|
203
200
|
},
|
|
204
201
|
selfTextStyle: {
|
|
205
202
|
...typography.body.bold,
|
|
206
203
|
color: color.warning,
|
|
207
|
-
// backgroundColor: "#FFAB0033",
|
|
208
|
-
// paddingHorizontal: spacing.padding.p0_5,
|
|
209
204
|
},
|
|
210
205
|
},
|
|
206
|
+
backButtonIconContainerStyle: {
|
|
207
|
+
paddingRight: spacing.spacing.s1,
|
|
208
|
+
},
|
|
211
209
|
} as const
|
|
212
210
|
);
|
|
213
211
|
};
|
|
@@ -223,19 +221,16 @@ export const getConversationStyleDark = (
|
|
|
223
221
|
shimmerBackgroundColor: color.staticWhite,
|
|
224
222
|
shimmerOpacity: 0.01,
|
|
225
223
|
speed: 1,
|
|
224
|
+
containerBackgroundColor: color.background2,
|
|
226
225
|
},
|
|
227
226
|
mentionsStyles: {
|
|
228
227
|
textStyle: {
|
|
229
228
|
...typography.body.bold,
|
|
230
229
|
color: color.receiveBubbleTextHighlight,
|
|
231
|
-
// backgroundColor: "#6852D633",
|
|
232
|
-
// paddingHorizontal: spacing.padding.p0_5,
|
|
233
230
|
},
|
|
234
231
|
selfTextStyle: {
|
|
235
232
|
...typography.body.bold,
|
|
236
233
|
color: color.warning,
|
|
237
|
-
// backgroundColor: "#FFAB0033",
|
|
238
|
-
// paddingHorizontal: spacing.padding.p0_5,
|
|
239
234
|
},
|
|
240
235
|
},
|
|
241
236
|
});
|