await `share` before closing menu (#3173)

zio/stable
Hailey 2024-03-11 10:42:37 -07:00 committed by GitHub
parent 596e744d41
commit e4a1069b43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -12,9 +12,9 @@ import {Share} from 'react-native'
*/ */
export async function shareUrl(url: string) { export async function shareUrl(url: string) {
if (isAndroid) { if (isAndroid) {
Share.share({message: url}) await Share.share({message: url})
} else if (isIOS) { } else if (isIOS) {
Share.share({url}) await Share.share({url})
} else { } else {
// React Native Share is not supported by web. Web Share API // React Native Share is not supported by web. Web Share API
// has increasing but not full support, so default to clipboard // has increasing but not full support, so default to clipboard