diff options
author | Hailey <me@haileyok.com> | 2024-03-11 10:42:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-11 10:42:37 -0700 |
commit | e4a1069b43919cd89889bcc96222030bb07ea241 (patch) | |
tree | 8565450d8281b73a4aeeeb261676bedb73a0978b /src | |
parent | 596e744d4177d3be6defeef68f202a70baaf6e37 (diff) | |
download | voidsky-e4a1069b43919cd89889bcc96222030bb07ea241.tar.zst |
await `share` before closing menu (#3173)
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/sharing.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/sharing.ts b/src/lib/sharing.ts index b294d7464..9f402f873 100644 --- a/src/lib/sharing.ts +++ b/src/lib/sharing.ts @@ -12,9 +12,9 @@ import {Share} from 'react-native' */ export async function shareUrl(url: string) { if (isAndroid) { - Share.share({message: url}) + await Share.share({message: url}) } else if (isIOS) { - Share.share({url}) + await Share.share({url}) } else { // React Native Share is not supported by web. Web Share API // has increasing but not full support, so default to clipboard |