|
@@ -40,7 +40,7 @@ export const PhotoItem = React.memo(
|
|
return (
|
|
return (
|
|
<TouchableOpacity onPress={() => openImageViewer(0)}>
|
|
<TouchableOpacity onPress={() => openImageViewer(0)}>
|
|
<Image
|
|
<Image
|
|
- source={{ uri: getImageUri(photos[0].url_small) }}
|
|
|
|
|
|
+ source={{ uri: getImageUri(photos[0].url_small), cache: 'reload' }}
|
|
style={photoStyles.onePhoto}
|
|
style={photoStyles.onePhoto}
|
|
/>
|
|
/>
|
|
</TouchableOpacity>
|
|
</TouchableOpacity>
|
|
@@ -49,7 +49,7 @@ export const PhotoItem = React.memo(
|
|
return photos.map((photo: PhotosData, index: number) => (
|
|
return photos.map((photo: PhotosData, index: number) => (
|
|
<TouchableOpacity key={photo.id} onPress={() => openImageViewer(index)}>
|
|
<TouchableOpacity key={photo.id} onPress={() => openImageViewer(index)}>
|
|
<Image
|
|
<Image
|
|
- source={{ uri: getImageUri(photo.url_small) }}
|
|
|
|
|
|
+ source={{ uri: getImageUri(photo.url_small), cache: 'reload' }}
|
|
style={[photoStyles.twoPhotos, index === 0 && { marginRight: 8 }]}
|
|
style={[photoStyles.twoPhotos, index === 0 && { marginRight: 8 }]}
|
|
/>
|
|
/>
|
|
</TouchableOpacity>
|
|
</TouchableOpacity>
|
|
@@ -59,7 +59,7 @@ export const PhotoItem = React.memo(
|
|
<View style={{ flexDirection: 'row' }}>
|
|
<View style={{ flexDirection: 'row' }}>
|
|
<TouchableOpacity onPress={() => openImageViewer(0)}>
|
|
<TouchableOpacity onPress={() => openImageViewer(0)}>
|
|
<Image
|
|
<Image
|
|
- source={{ uri: getImageUri(photos[0].url_small) }}
|
|
|
|
|
|
+ source={{ uri: getImageUri(photos[0].url_small), cache: 'reload' }}
|
|
style={photoStyles.bigPhoto}
|
|
style={photoStyles.bigPhoto}
|
|
/>
|
|
/>
|
|
</TouchableOpacity>
|
|
</TouchableOpacity>
|
|
@@ -67,13 +67,13 @@ export const PhotoItem = React.memo(
|
|
<View style={styles.smallPhotoContainer}>
|
|
<View style={styles.smallPhotoContainer}>
|
|
<TouchableOpacity onPress={() => openImageViewer(1)}>
|
|
<TouchableOpacity onPress={() => openImageViewer(1)}>
|
|
<Image
|
|
<Image
|
|
- source={{ uri: getImageUri(photos[1].url_small) }}
|
|
|
|
|
|
+ source={{ uri: getImageUri(photos[1].url_small), cache: 'reload' }}
|
|
style={photoStyles.smallPhoto}
|
|
style={photoStyles.smallPhoto}
|
|
/>
|
|
/>
|
|
</TouchableOpacity>
|
|
</TouchableOpacity>
|
|
<TouchableOpacity onPress={() => openImageViewer(2)}>
|
|
<TouchableOpacity onPress={() => openImageViewer(2)}>
|
|
<Image
|
|
<Image
|
|
- source={{ uri: getImageUri(photos[2].url_small) }}
|
|
|
|
|
|
+ source={{ uri: getImageUri(photos[2].url_small), cache: 'reload' }}
|
|
style={[photoStyles.smallPhoto, { position: 'relative' }]}
|
|
style={[photoStyles.smallPhoto, { position: 'relative' }]}
|
|
/>
|
|
/>
|
|
</TouchableOpacity>
|
|
</TouchableOpacity>
|