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-02-13 12:33:51 +01:00
parent 4c8003b533
commit 0c76fb642d
5 changed files with 17 additions and 12 deletions

View File

@ -12,6 +12,7 @@ import {
PermissionsAndroid,
Platform,
Share,
StatusBar,
StyleSheet,
View
} from 'react-native'
@ -52,7 +53,7 @@ const ScreenImagesViewer = ({
return
}
CameraRoll.save(
imageUrls[imageIndex].originUrl ||
imageUrls[imageIndex].url ||
imageUrls[imageIndex].remote_url ||
imageUrls[imageIndex].preview_url
)
@ -133,6 +134,7 @@ const ScreenImagesViewer = ({
return (
<SafeAreaView style={styles.base} edges={['top']}>
<StatusBar backgroundColor='rgb(0,0,0)' />
<ImageView
images={imageUrls.map(urls => ({ uri: urls.url }))}
imageIndex={imageIndex}