fix: update share functionality to include share URL and message

This commit is contained in:
lawvs 2025-04-29 14:48:58 +08:00
parent ed3c3f755d
commit f8ef744d01
1 changed files with 3 additions and 1 deletions

View File

@ -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])