@@ -7,7 +7,7 @@ import { usePrefetchUser, useUserById, useWhoami } from "@follow/store/user/hook
77import { Image as ExpoImage } from "expo-image"
88import { createContext , Fragment , use , useCallback , useEffect , useMemo } from "react"
99import { useTranslation } from "react-i18next"
10- import { Alert , FlatList , Pressable , Share , View } from "react-native"
10+ import { Alert , FlatList , Platform , Pressable , Share , View } from "react-native"
1111import Animated , {
1212 interpolate ,
1313 useAnimatedScrollHandler ,
@@ -42,6 +42,7 @@ import { ShareForwardCuteReIcon } from "@/src/icons/share_forward_cute_re"
4242import type { followClient } from "@/src/lib/api-client"
4343import { Navigation } from "@/src/lib/navigation/Navigation"
4444import type { NavigationControllerView } from "@/src/lib/navigation/types"
45+ import { createLinkShareContent } from "@/src/lib/share"
4546import { toast } from "@/src/lib/toast"
4647import { useShareSubscription } from "@/src/modules/settings/hooks/useShareSubscription"
4748import { UserHeaderBanner } from "@/src/modules/settings/UserHeaderBanner"
@@ -95,11 +96,13 @@ function ProfileScreenImpl(props: { userId: string }) {
9596 const openShareUrl = useCallback ( ( ) => {
9697 if ( ! user ?. id ) return
9798 const shareUrl = `https://app.folo.is/share/users/${ user . id } `
98- Share . share ( {
99- message : shareUrl ,
100- url : shareUrl ,
101- title : `Folo | ${ user . name } 's Profile` ,
102- } )
99+ Share . share (
100+ createLinkShareContent ( {
101+ platform : Platform . OS ,
102+ title : `Folo | ${ user . name } 's Profile` ,
103+ url : shareUrl ,
104+ } ) ,
105+ )
103106 } , [ user ?. id , user ?. name ] )
104107
105108 const whoami = useWhoami ( )
0 commit comments