From f8ef744d018858cdec41bbb37f9ea22dbdf89f6f Mon Sep 17 00:00:00 2001 From: lawvs <18554747+lawvs@users.noreply.github.com> Date: Tue, 29 Apr 2025 14:48:58 +0800 Subject: [PATCH] fix: update share functionality to include share URL and message --- apps/mobile/src/screens/(modal)/ProfileScreen.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/mobile/src/screens/(modal)/ProfileScreen.tsx b/apps/mobile/src/screens/(modal)/ProfileScreen.tsx index 95ba64545..a6089f068 100644 --- a/apps/mobile/src/screens/(modal)/ProfileScreen.tsx +++ b/apps/mobile/src/screens/(modal)/ProfileScreen.tsx @@ -113,8 +113,10 @@ function ProfileScreenImpl(props: { userId: string }) { const textLabelColor = useColor("label") const openShareUrl = useCallback(() => { if (!user?.id) return + const shareUrl = `https://app.follow.is/share/users/${user.id}` Share.share({ - url: `https://app.follow.is/share/users/${user.id}`, + message: shareUrl, + url: shareUrl, title: `Folo | ${user.name}'s Profile`, }) }, [user?.id, user?.name])