await `share` before closing menu (#3173)
parent
596e744d41
commit
e4a1069b43
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue