From e4a1069b43919cd89889bcc96222030bb07ea241 Mon Sep 17 00:00:00 2001 From: Hailey Date: Mon, 11 Mar 2024 10:42:37 -0700 Subject: await `share` before closing menu (#3173) --- src/lib/sharing.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit 1.4.1