Fix sharing action

This commit is contained in:
Zhiyuan Zheng 2021-12-15 23:30:30 +01:00
parent d9228da7d7
commit 4e693d3903
1 changed files with 4 additions and 2 deletions

View File

@ -61,9 +61,11 @@ const HeaderComponent = React.memo(
analytics('imageviewer_more_share_press')
switch (Platform.OS) {
case 'ios':
Share.share({ url: imageUrls[currentIndex].url })
await Share.share({ url: imageUrls[currentIndex].url })
break
case 'android':
Share.share({ message: imageUrls[currentIndex].url })
await Share.share({ message: imageUrls[currentIndex].url })
break
}
break
}