mirror of https://github.com/tooot-app/app
Fix sharing action
This commit is contained in:
parent
d9228da7d7
commit
4e693d3903
|
@ -61,9 +61,11 @@ const HeaderComponent = React.memo(
|
||||||
analytics('imageviewer_more_share_press')
|
analytics('imageviewer_more_share_press')
|
||||||
switch (Platform.OS) {
|
switch (Platform.OS) {
|
||||||
case 'ios':
|
case 'ios':
|
||||||
Share.share({ url: imageUrls[currentIndex].url })
|
await Share.share({ url: imageUrls[currentIndex].url })
|
||||||
|
break
|
||||||
case 'android':
|
case 'android':
|
||||||
Share.share({ message: imageUrls[currentIndex].url })
|
await Share.share({ message: imageUrls[currentIndex].url })
|
||||||
|
break
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue