tangled
alpha
login
or
join now
stream.place
/
streamplace
74
fork
atom
Live video on the AT Protocol
74
fork
atom
overview
issues
1
pulls
pipelines
remove all refs to native moji picker
Natalie B.
3 weeks ago
6b342a13
34072025
+8
-30
1 changed file
expand all
collapse all
unified
split
js
components
src
components
chat
chat-box.tsx
+8
-30
js/components/src/components/chat/chat-box.tsx
···
1
1
import Graphemer from "graphemer";
2
2
-
import { AtSignIcon, ExternalLink, SmilePlus, X } from "lucide-react-native";
2
2
+
import { AtSignIcon, ExternalLink, X } from "lucide-react-native";
3
3
import { env } from "process";
4
4
-
import React, { useEffect, useMemo, useRef, useState } from "react";
4
4
+
import { ReactNode, useEffect, useMemo, useRef, useState } from "react";
5
5
import { Platform, Pressable, TextInput } from "react-native";
6
6
import { ChatMessageViewHydrated } from "streamplace";
7
7
import { Button, Loader, Text, toast, useTheme, View } from "../../";
···
70
70
isOpen: boolean,
71
71
onClose: () => void,
72
72
onSelect: (emoji: any) => void,
73
73
-
) => React.ReactNode;
73
73
+
) => ReactNode;
74
74
skinTone?: number;
75
75
}) {
76
76
const [submitting, setSubmitting] = useState(false);
···
503
503
submitBehavior="submit"
504
504
placeholder="Type a message..."
505
505
/>
506
506
-
{Platform.OS !== "web" && emojiPicker && (
507
507
-
<Button
508
508
-
variant="secondary"
509
509
-
width="min"
510
510
-
style={{ borderRadius: 16, height: 43, aspectRatio: 1 }}
511
511
-
onPress={() => setShowEmojiSelector(!showEmojiSelector)}
512
512
-
>
513
513
-
<SmilePlus size={20} color="white" />
514
514
-
</Button>
515
515
-
)}
516
506
<View>
517
507
<Button
518
508
disabled={submitting}
···
525
515
</Button>
526
516
</View>
527
517
</View>
528
528
-
{Platform.OS !== "web" &&
529
529
-
emojiPicker?.(
530
530
-
showEmojiSelector,
531
531
-
() => setShowEmojiSelector(false),
532
532
-
handleEmojiSelect,
533
533
-
)}
534
518
{showSuggestions && (
535
519
<MentionSuggestions
536
520
authors={filteredAuthors || new Map()}
···
555
539
{ justifyContent: "flex-end", position: "relative" },
556
540
]}
557
541
>
558
558
-
{
559
559
-
(console.log("[ChatBox] emojiPicker render", {
560
560
-
hasEmojiPicker: !!emojiPicker,
561
561
-
showEmojiSelector,
562
562
-
}),
563
563
-
emojiPicker?.(
564
564
-
showEmojiSelector,
565
565
-
() => setShowEmojiSelector(false),
566
566
-
handleEmojiSelect,
567
567
-
))
568
568
-
}
542
542
+
{emojiPicker?.(
543
543
+
showEmojiSelector,
544
544
+
() => setShowEmojiSelector(false),
545
545
+
handleEmojiSelect,
546
546
+
)}
569
547
{env.NODE_ENV === "development" && (
570
548
<Button
571
549
variant="secondary"