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) {
|
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
|
||||||
|
|
Loading…
Reference in New Issue