await share before closing menu (#3173)

This commit is contained in:
Hailey
2024-03-11 10:42:37 -07:00
committed by GitHub
parent 596e744d41
commit e4a1069b43
+2 -2
View File
@@ -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