Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

use method that's actually available on android (#8448)

authored by

Samuel Newman and committed by
GitHub
b5231401 1e620b19

+9 -4
+9 -4
src/components/PostControls/ShareMenu/ShareMenuItems.tsx
··· 10 10 import {shareText, shareUrl} from '#/lib/sharing' 11 11 import {toShareUrl} from '#/lib/strings/url-helpers' 12 12 import {logger} from '#/logger' 13 + import {isIOS} from '#/platform/detection' 13 14 import {useProfileShadow} from '#/state/cache/profile-shadow' 14 15 import {useSession} from '#/state/session' 15 16 import * as Toast from '#/view/com/util/Toast' ··· 61 62 onShareProp() 62 63 } 63 64 64 - const onCopyLink = () => { 65 + const onCopyLink = async () => { 65 66 logger.metric('share:press:copyLink', {}, {statsig: true}) 66 67 const url = toShareUrl(href) 67 - ExpoClipboard.setUrlAsync(url).then(() => 68 - Toast.show(_(msg`Copied to clipboard`), 'clipboard-check'), 69 - ) 68 + if (isIOS) { 69 + // iOS only 70 + await ExpoClipboard.setUrlAsync(url) 71 + } else { 72 + await ExpoClipboard.setStringAsync(url) 73 + } 74 + Toast.show(_(msg`Copied to clipboard`), 'clipboard-check') 70 75 onShareProp() 71 76 } 72 77