await share before closing menu (#3173)
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user