@appsupportkit/support-sdk 0.1.2 → 0.3.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/lib/commonjs/api.js +17 -2
- package/lib/commonjs/api.js.map +1 -1
- package/lib/commonjs/components/BottomSheet.js +67 -47
- package/lib/commonjs/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/components/LauncherButton.js +177 -0
- package/lib/commonjs/components/LauncherButton.js.map +1 -0
- package/lib/commonjs/components/SupportButton.js +168 -190
- package/lib/commonjs/components/SupportButton.js.map +1 -1
- package/lib/commonjs/components/icons.js +110 -23
- package/lib/commonjs/components/icons.js.map +1 -1
- package/lib/commonjs/components/primitives.js +191 -44
- package/lib/commonjs/components/primitives.js.map +1 -1
- package/lib/commonjs/components/screens/ComposeScreen.js +108 -60
- package/lib/commonjs/components/screens/ComposeScreen.js.map +1 -1
- package/lib/commonjs/components/screens/HomeScreen.js +221 -118
- package/lib/commonjs/components/screens/HomeScreen.js.map +1 -1
- package/lib/commonjs/components/screens/LanguageScreen.js +150 -0
- package/lib/commonjs/components/screens/LanguageScreen.js.map +1 -0
- package/lib/commonjs/components/screens/ThreadScreen.js +237 -111
- package/lib/commonjs/components/screens/ThreadScreen.js.map +1 -1
- package/lib/commonjs/i18n/index.js +101 -0
- package/lib/commonjs/i18n/index.js.map +1 -0
- package/lib/commonjs/i18n/languages.js +95 -0
- package/lib/commonjs/i18n/languages.js.map +1 -0
- package/lib/commonjs/i18n/strings/de.js +72 -0
- package/lib/commonjs/i18n/strings/de.js.map +1 -0
- package/lib/commonjs/i18n/strings/en.js +88 -0
- package/lib/commonjs/i18n/strings/en.js.map +1 -0
- package/lib/commonjs/i18n/strings/es.js +72 -0
- package/lib/commonjs/i18n/strings/es.js.map +1 -0
- package/lib/commonjs/i18n/strings/fr.js +72 -0
- package/lib/commonjs/i18n/strings/fr.js.map +1 -0
- package/lib/commonjs/i18n/strings/hi.js +72 -0
- package/lib/commonjs/i18n/strings/hi.js.map +1 -0
- package/lib/commonjs/i18n/strings/it.js +72 -0
- package/lib/commonjs/i18n/strings/it.js.map +1 -0
- package/lib/commonjs/i18n/strings/ja.js +72 -0
- package/lib/commonjs/i18n/strings/ja.js.map +1 -0
- package/lib/commonjs/i18n/strings/ko.js +72 -0
- package/lib/commonjs/i18n/strings/ko.js.map +1 -0
- package/lib/commonjs/i18n/strings/nl.js +72 -0
- package/lib/commonjs/i18n/strings/nl.js.map +1 -0
- package/lib/commonjs/i18n/strings/pl.js +72 -0
- package/lib/commonjs/i18n/strings/pl.js.map +1 -0
- package/lib/commonjs/i18n/strings/pt.js +72 -0
- package/lib/commonjs/i18n/strings/pt.js.map +1 -0
- package/lib/commonjs/i18n/strings/ru.js +72 -0
- package/lib/commonjs/i18n/strings/ru.js.map +1 -0
- package/lib/commonjs/i18n/strings/tr.js +72 -0
- package/lib/commonjs/i18n/strings/tr.js.map +1 -0
- package/lib/commonjs/i18n/strings/zh.js +72 -0
- package/lib/commonjs/i18n/strings/zh.js.map +1 -0
- package/lib/commonjs/index.js +31 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/theme.js +136 -17
- package/lib/commonjs/theme.js.map +1 -1
- package/lib/commonjs/types.js +18 -0
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/unread.js +92 -0
- package/lib/commonjs/unread.js.map +1 -0
- package/lib/commonjs/useSupportThreads.js +296 -0
- package/lib/commonjs/useSupportThreads.js.map +1 -0
- package/lib/commonjs/utils.js +58 -10
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/api.js +16 -2
- package/lib/module/api.js.map +1 -1
- package/lib/module/components/BottomSheet.js +68 -48
- package/lib/module/components/BottomSheet.js.map +1 -1
- package/lib/module/components/LauncherButton.js +172 -0
- package/lib/module/components/LauncherButton.js.map +1 -0
- package/lib/module/components/SupportButton.js +172 -194
- package/lib/module/components/SupportButton.js.map +1 -1
- package/lib/module/components/icons.js +107 -22
- package/lib/module/components/icons.js.map +1 -1
- package/lib/module/components/primitives.js +187 -45
- package/lib/module/components/primitives.js.map +1 -1
- package/lib/module/components/screens/ComposeScreen.js +114 -64
- package/lib/module/components/screens/ComposeScreen.js.map +1 -1
- package/lib/module/components/screens/HomeScreen.js +224 -121
- package/lib/module/components/screens/HomeScreen.js.map +1 -1
- package/lib/module/components/screens/LanguageScreen.js +147 -0
- package/lib/module/components/screens/LanguageScreen.js.map +1 -0
- package/lib/module/components/screens/ThreadScreen.js +243 -115
- package/lib/module/components/screens/ThreadScreen.js.map +1 -1
- package/lib/module/i18n/index.js +56 -0
- package/lib/module/i18n/index.js.map +1 -0
- package/lib/module/i18n/languages.js +88 -0
- package/lib/module/i18n/languages.js.map +1 -0
- package/lib/module/i18n/strings/de.js +68 -0
- package/lib/module/i18n/strings/de.js.map +1 -0
- package/lib/module/i18n/strings/en.js +84 -0
- package/lib/module/i18n/strings/en.js.map +1 -0
- package/lib/module/i18n/strings/es.js +68 -0
- package/lib/module/i18n/strings/es.js.map +1 -0
- package/lib/module/i18n/strings/fr.js +68 -0
- package/lib/module/i18n/strings/fr.js.map +1 -0
- package/lib/module/i18n/strings/hi.js +68 -0
- package/lib/module/i18n/strings/hi.js.map +1 -0
- package/lib/module/i18n/strings/it.js +68 -0
- package/lib/module/i18n/strings/it.js.map +1 -0
- package/lib/module/i18n/strings/ja.js +68 -0
- package/lib/module/i18n/strings/ja.js.map +1 -0
- package/lib/module/i18n/strings/ko.js +68 -0
- package/lib/module/i18n/strings/ko.js.map +1 -0
- package/lib/module/i18n/strings/nl.js +68 -0
- package/lib/module/i18n/strings/nl.js.map +1 -0
- package/lib/module/i18n/strings/pl.js +68 -0
- package/lib/module/i18n/strings/pl.js.map +1 -0
- package/lib/module/i18n/strings/pt.js +68 -0
- package/lib/module/i18n/strings/pt.js.map +1 -0
- package/lib/module/i18n/strings/ru.js +68 -0
- package/lib/module/i18n/strings/ru.js.map +1 -0
- package/lib/module/i18n/strings/tr.js +68 -0
- package/lib/module/i18n/strings/tr.js.map +1 -0
- package/lib/module/i18n/strings/zh.js +68 -0
- package/lib/module/i18n/strings/zh.js.map +1 -0
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/theme.js +135 -16
- package/lib/module/theme.js.map +1 -1
- package/lib/module/types.js +18 -0
- package/lib/module/types.js.map +1 -1
- package/lib/module/unread.js +83 -0
- package/lib/module/unread.js.map +1 -0
- package/lib/module/useSupportThreads.js +291 -0
- package/lib/module/useSupportThreads.js.map +1 -0
- package/lib/module/utils.js +55 -10
- package/lib/module/utils.js.map +1 -1
- package/lib/typescript/api.d.ts +9 -0
- package/lib/typescript/api.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/components/LauncherButton.d.ts +14 -0
- package/lib/typescript/components/LauncherButton.d.ts.map +1 -0
- package/lib/typescript/components/SupportButton.d.ts +3 -3
- package/lib/typescript/components/SupportButton.d.ts.map +1 -1
- package/lib/typescript/components/icons.d.ts +18 -2
- package/lib/typescript/components/icons.d.ts.map +1 -1
- package/lib/typescript/components/primitives.d.ts +42 -7
- package/lib/typescript/components/primitives.d.ts.map +1 -1
- package/lib/typescript/components/screens/ComposeScreen.d.ts +3 -1
- package/lib/typescript/components/screens/ComposeScreen.d.ts.map +1 -1
- package/lib/typescript/components/screens/HomeScreen.d.ts +8 -2
- package/lib/typescript/components/screens/HomeScreen.d.ts.map +1 -1
- package/lib/typescript/components/screens/LanguageScreen.d.ts +30 -0
- package/lib/typescript/components/screens/LanguageScreen.d.ts.map +1 -0
- package/lib/typescript/components/screens/ThreadScreen.d.ts +3 -1
- package/lib/typescript/components/screens/ThreadScreen.d.ts.map +1 -1
- package/lib/typescript/i18n/index.d.ts +15 -0
- package/lib/typescript/i18n/index.d.ts.map +1 -0
- package/lib/typescript/i18n/languages.d.ts +36 -0
- package/lib/typescript/i18n/languages.d.ts.map +1 -0
- package/lib/typescript/i18n/strings/de.d.ts +3 -0
- package/lib/typescript/i18n/strings/de.d.ts.map +1 -0
- package/lib/typescript/i18n/strings/en.d.ts +83 -0
- package/lib/typescript/i18n/strings/en.d.ts.map +1 -0
- package/lib/typescript/i18n/strings/es.d.ts +3 -0
- package/lib/typescript/i18n/strings/es.d.ts.map +1 -0
- package/lib/typescript/i18n/strings/fr.d.ts +3 -0
- package/lib/typescript/i18n/strings/fr.d.ts.map +1 -0
- package/lib/typescript/i18n/strings/hi.d.ts +3 -0
- package/lib/typescript/i18n/strings/hi.d.ts.map +1 -0
- package/lib/typescript/i18n/strings/it.d.ts +3 -0
- package/lib/typescript/i18n/strings/it.d.ts.map +1 -0
- package/lib/typescript/i18n/strings/ja.d.ts +3 -0
- package/lib/typescript/i18n/strings/ja.d.ts.map +1 -0
- package/lib/typescript/i18n/strings/ko.d.ts +3 -0
- package/lib/typescript/i18n/strings/ko.d.ts.map +1 -0
- package/lib/typescript/i18n/strings/nl.d.ts +3 -0
- package/lib/typescript/i18n/strings/nl.d.ts.map +1 -0
- package/lib/typescript/i18n/strings/pl.d.ts +3 -0
- package/lib/typescript/i18n/strings/pl.d.ts.map +1 -0
- package/lib/typescript/i18n/strings/pt.d.ts +3 -0
- package/lib/typescript/i18n/strings/pt.d.ts.map +1 -0
- package/lib/typescript/i18n/strings/ru.d.ts +3 -0
- package/lib/typescript/i18n/strings/ru.d.ts.map +1 -0
- package/lib/typescript/i18n/strings/tr.d.ts +3 -0
- package/lib/typescript/i18n/strings/tr.d.ts.map +1 -0
- package/lib/typescript/i18n/strings/zh.d.ts +3 -0
- package/lib/typescript/i18n/strings/zh.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +2 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/theme.d.ts +44 -3
- package/lib/typescript/theme.d.ts.map +1 -1
- package/lib/typescript/types.d.ts +54 -2
- package/lib/typescript/types.d.ts.map +1 -1
- package/lib/typescript/unread.d.ts +22 -0
- package/lib/typescript/unread.d.ts.map +1 -0
- package/lib/typescript/useSupportThreads.d.ts +38 -0
- package/lib/typescript/useSupportThreads.d.ts.map +1 -0
- package/lib/typescript/utils.d.ts +8 -2
- package/lib/typescript/utils.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/api.ts +24 -1
- package/src/components/BottomSheet.tsx +61 -43
- package/src/components/LauncherButton.tsx +217 -0
- package/src/components/SupportButton.tsx +195 -210
- package/src/components/icons.tsx +113 -19
- package/src/components/primitives.tsx +230 -39
- package/src/components/screens/ComposeScreen.tsx +129 -63
- package/src/components/screens/HomeScreen.tsx +230 -120
- package/src/components/screens/LanguageScreen.tsx +172 -0
- package/src/components/screens/ThreadScreen.tsx +319 -122
- package/src/i18n/index.ts +81 -0
- package/src/i18n/languages.ts +106 -0
- package/src/i18n/strings/de.ts +78 -0
- package/src/i18n/strings/en.ts +94 -0
- package/src/i18n/strings/es.ts +77 -0
- package/src/i18n/strings/fr.ts +78 -0
- package/src/i18n/strings/hi.ts +77 -0
- package/src/i18n/strings/it.ts +77 -0
- package/src/i18n/strings/ja.ts +77 -0
- package/src/i18n/strings/ko.ts +76 -0
- package/src/i18n/strings/nl.ts +77 -0
- package/src/i18n/strings/pl.ts +77 -0
- package/src/i18n/strings/pt.ts +77 -0
- package/src/i18n/strings/ru.ts +77 -0
- package/src/i18n/strings/tr.ts +77 -0
- package/src/i18n/strings/zh.ts +75 -0
- package/src/index.tsx +9 -0
- package/src/theme.ts +165 -18
- package/src/types.ts +56 -2
- package/src/unread.ts +91 -0
- package/src/useSupportThreads.ts +392 -0
- package/src/utils.ts +48 -10
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
// The launcher: the one piece of the SDK that lives inside the host app's
|
|
2
|
+
// own UI, so it has to look intentional next to anything. Three variants
|
|
3
|
+
// cover the placements that actually occur — a floating action button, a
|
|
4
|
+
// bordered button in a header, and a bare icon in a toolbar.
|
|
5
|
+
import { useEffect, useRef } from 'react';
|
|
6
|
+
import {
|
|
7
|
+
Animated,
|
|
8
|
+
Easing,
|
|
9
|
+
Pressable,
|
|
10
|
+
Text,
|
|
11
|
+
View,
|
|
12
|
+
type StyleProp,
|
|
13
|
+
type ViewStyle,
|
|
14
|
+
} from 'react-native';
|
|
15
|
+
import type { SupportTheme } from '../theme';
|
|
16
|
+
import type { LauncherVariant } from '../types';
|
|
17
|
+
import { ChatBubbleMark } from './icons';
|
|
18
|
+
|
|
19
|
+
const PRESS_SCALE = 0.93;
|
|
20
|
+
|
|
21
|
+
/** Counts stay legible: three digits in a pill is not a design. */
|
|
22
|
+
function badgeLabel(unread: number): string {
|
|
23
|
+
return unread > 99 ? '99+' : String(unread);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function LauncherButton({
|
|
27
|
+
theme,
|
|
28
|
+
unread,
|
|
29
|
+
variant = 'solid',
|
|
30
|
+
size = 52,
|
|
31
|
+
label,
|
|
32
|
+
style,
|
|
33
|
+
onPress,
|
|
34
|
+
}: {
|
|
35
|
+
theme: SupportTheme;
|
|
36
|
+
unread: number;
|
|
37
|
+
variant?: LauncherVariant;
|
|
38
|
+
size?: number;
|
|
39
|
+
/** Renders a pill with text next to the mark instead of a circle. */
|
|
40
|
+
label?: string;
|
|
41
|
+
style?: StyleProp<ViewStyle>;
|
|
42
|
+
onPress: () => void;
|
|
43
|
+
}) {
|
|
44
|
+
const scale = useRef(new Animated.Value(1)).current;
|
|
45
|
+
const pulse = useRef(new Animated.Value(0)).current;
|
|
46
|
+
const previousUnread = useRef(unread);
|
|
47
|
+
|
|
48
|
+
// A new reply pulses the halo twice, then stops. Enough to catch the eye
|
|
49
|
+
// on the way past; not a permanently animating element in someone's app.
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
if (unread > previousUnread.current) {
|
|
52
|
+
pulse.setValue(0);
|
|
53
|
+
const animation = Animated.loop(
|
|
54
|
+
Animated.timing(pulse, {
|
|
55
|
+
toValue: 1,
|
|
56
|
+
duration: 1600,
|
|
57
|
+
easing: Easing.out(Easing.ease),
|
|
58
|
+
useNativeDriver: true,
|
|
59
|
+
}),
|
|
60
|
+
{ iterations: 2 },
|
|
61
|
+
);
|
|
62
|
+
animation.start(() => pulse.setValue(0));
|
|
63
|
+
previousUnread.current = unread;
|
|
64
|
+
return () => animation.stop();
|
|
65
|
+
}
|
|
66
|
+
previousUnread.current = unread;
|
|
67
|
+
return undefined;
|
|
68
|
+
}, [unread, pulse]);
|
|
69
|
+
|
|
70
|
+
const press = (to: number) =>
|
|
71
|
+
Animated.timing(scale, {
|
|
72
|
+
toValue: to,
|
|
73
|
+
duration: to === 1 ? theme.motion.base : theme.motion.fast,
|
|
74
|
+
easing: Easing.out(Easing.cubic),
|
|
75
|
+
useNativeDriver: true,
|
|
76
|
+
}).start();
|
|
77
|
+
|
|
78
|
+
const solid = variant === 'solid';
|
|
79
|
+
const soft = variant === 'soft';
|
|
80
|
+
const fill = solid
|
|
81
|
+
? theme.colors.accent
|
|
82
|
+
: soft
|
|
83
|
+
? theme.colors.surface
|
|
84
|
+
: 'transparent';
|
|
85
|
+
const markColor = solid
|
|
86
|
+
? theme.colors.accentForeground
|
|
87
|
+
: soft
|
|
88
|
+
? theme.colors.accent
|
|
89
|
+
: theme.launcher.minimalMark;
|
|
90
|
+
// Dots are punched out of the bubble in whatever sits behind the mark —
|
|
91
|
+
// the button's own fill, or the app background when there isn't one.
|
|
92
|
+
const markHoleColor = solid
|
|
93
|
+
? theme.colors.accent
|
|
94
|
+
: soft
|
|
95
|
+
? theme.colors.surface
|
|
96
|
+
: theme.colors.bg;
|
|
97
|
+
// Dark: a hairline separates the fill from a near-black app background.
|
|
98
|
+
// Light: the accent-tinted shadow already does that, so the ring only has
|
|
99
|
+
// to keep the edge from looking soft.
|
|
100
|
+
const border = solid
|
|
101
|
+
? { borderWidth: 1, borderColor: theme.launcher.solidRing }
|
|
102
|
+
: soft
|
|
103
|
+
? { borderWidth: 1, borderColor: theme.colors.border }
|
|
104
|
+
: { borderWidth: 0, borderColor: 'transparent' };
|
|
105
|
+
const badgeBg = solid ? theme.colors.accentForeground : theme.colors.accent;
|
|
106
|
+
const badgeFg = solid ? theme.colors.accent : theme.colors.accentForeground;
|
|
107
|
+
|
|
108
|
+
const height = label ? Math.max(44, size * 0.84) : size;
|
|
109
|
+
const markSize = Math.round(size * (label ? 0.36 : 0.42));
|
|
110
|
+
|
|
111
|
+
return (
|
|
112
|
+
<Animated.View
|
|
113
|
+
style={[{ transform: [{ scale }] }, style]}
|
|
114
|
+
// The halo and badge sit outside the button's bounds.
|
|
115
|
+
pointerEvents="box-none"
|
|
116
|
+
>
|
|
117
|
+
{unread > 0 && (
|
|
118
|
+
<Animated.View
|
|
119
|
+
pointerEvents="none"
|
|
120
|
+
style={{
|
|
121
|
+
position: 'absolute',
|
|
122
|
+
top: 0,
|
|
123
|
+
left: 0,
|
|
124
|
+
width: label ? undefined : size,
|
|
125
|
+
right: label ? 0 : undefined,
|
|
126
|
+
height,
|
|
127
|
+
borderRadius: theme.radii.pill,
|
|
128
|
+
backgroundColor: theme.colors.accent,
|
|
129
|
+
opacity: pulse.interpolate({
|
|
130
|
+
inputRange: [0, 1],
|
|
131
|
+
outputRange: [0.28, 0],
|
|
132
|
+
}),
|
|
133
|
+
transform: [
|
|
134
|
+
{
|
|
135
|
+
scale: pulse.interpolate({
|
|
136
|
+
inputRange: [0, 1],
|
|
137
|
+
outputRange: [1, 1.5],
|
|
138
|
+
}),
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
}}
|
|
142
|
+
/>
|
|
143
|
+
)}
|
|
144
|
+
|
|
145
|
+
<Pressable
|
|
146
|
+
onPress={onPress}
|
|
147
|
+
onPressIn={() => press(PRESS_SCALE)}
|
|
148
|
+
onPressOut={() => press(1)}
|
|
149
|
+
hitSlop={8}
|
|
150
|
+
accessibilityRole="button"
|
|
151
|
+
accessibilityLabel={
|
|
152
|
+
unread > 0
|
|
153
|
+
? `Support, ${unread} unread ${unread === 1 ? 'reply' : 'replies'}`
|
|
154
|
+
: 'Support'
|
|
155
|
+
}
|
|
156
|
+
style={{
|
|
157
|
+
height,
|
|
158
|
+
width: label ? undefined : size,
|
|
159
|
+
paddingHorizontal: label ? 18 : 0,
|
|
160
|
+
flexDirection: 'row',
|
|
161
|
+
alignItems: 'center',
|
|
162
|
+
justifyContent: 'center',
|
|
163
|
+
gap: 9,
|
|
164
|
+
borderRadius: theme.radii.pill,
|
|
165
|
+
backgroundColor: fill,
|
|
166
|
+
...border,
|
|
167
|
+
...(variant === 'minimal' ? null : theme.shadows.launcher),
|
|
168
|
+
}}
|
|
169
|
+
>
|
|
170
|
+
<ChatBubbleMark color={markColor} dotColor={markHoleColor} size={markSize} />
|
|
171
|
+
{label !== undefined && (
|
|
172
|
+
<Text
|
|
173
|
+
style={{
|
|
174
|
+
fontSize: 15,
|
|
175
|
+
fontWeight: '600',
|
|
176
|
+
letterSpacing: -0.1,
|
|
177
|
+
color: solid ? theme.colors.accentForeground : theme.colors.textPrimary,
|
|
178
|
+
}}
|
|
179
|
+
>
|
|
180
|
+
{label}
|
|
181
|
+
</Text>
|
|
182
|
+
)}
|
|
183
|
+
</Pressable>
|
|
184
|
+
|
|
185
|
+
{unread > 0 && (
|
|
186
|
+
<View
|
|
187
|
+
pointerEvents="none"
|
|
188
|
+
style={{
|
|
189
|
+
position: 'absolute',
|
|
190
|
+
top: -5,
|
|
191
|
+
right: -5,
|
|
192
|
+
minWidth: 19,
|
|
193
|
+
height: 19,
|
|
194
|
+
borderRadius: theme.radii.pill,
|
|
195
|
+
paddingHorizontal: 5,
|
|
196
|
+
backgroundColor: badgeBg,
|
|
197
|
+
alignItems: 'center',
|
|
198
|
+
justifyContent: 'center',
|
|
199
|
+
...theme.shadows.badge,
|
|
200
|
+
}}
|
|
201
|
+
>
|
|
202
|
+
<Text
|
|
203
|
+
style={{
|
|
204
|
+
fontSize: 11,
|
|
205
|
+
lineHeight: 14,
|
|
206
|
+
fontWeight: '700',
|
|
207
|
+
color: badgeFg,
|
|
208
|
+
fontVariant: ['tabular-nums'],
|
|
209
|
+
}}
|
|
210
|
+
>
|
|
211
|
+
{badgeLabel(unread)}
|
|
212
|
+
</Text>
|
|
213
|
+
</View>
|
|
214
|
+
)}
|
|
215
|
+
</Animated.View>
|
|
216
|
+
);
|
|
217
|
+
}
|