1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
This commit is contained in:
Zhiyuan Zheng
2021-04-19 11:34:50 +02:00
parent c9964f8d1f
commit 292101ab30
2 changed files with 12 additions and 6 deletions

View File

@ -6,7 +6,9 @@ const saveIos = async (
image: Nav.RootStackParamList['Screen-ImagesViewer']['imageUrls'][0]
) => {
CameraRoll.save(image.url)
.then(() => haptics('Success'))
.then(() => {
haptics('Success')
})
.catch(() => {
if (image.remote_url) {
CameraRoll.save(image.remote_url)