Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Fix Android sharing (#545)

authored by

Ollie Hsieh and committed by
GitHub
c8e51a7d 62b07f93

+5 -3
+5 -3
src/lib/sharing.ts
··· 1 - import {isNative} from 'platform/detection' 1 + import {isIOS, isAndroid} from 'platform/detection' 2 2 // import * as Sharing from 'expo-sharing' 3 3 import Clipboard from '@react-native-clipboard/clipboard' 4 4 import * as Toast from '../view/com/util/Toast' ··· 11 11 * clipboard. 12 12 */ 13 13 export async function shareUrl(url: string) { 14 - if (isNative) { 15 - Share.share({url: url}) 14 + if (isAndroid) { 15 + Share.share({message: url}) 16 + } else if (isIOS) { 17 + Share.share({url}) 16 18 } else { 17 19 // React Native Share is not supported by web. Web Share API 18 20 // has increasing but not full support, so default to clipboard