mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
Use Photo.getLocalPhotoUri helper to display local photo (#3289)
This commit is contained in:
@@ -34,7 +34,7 @@ const PhotosSection = ( {
|
|||||||
|
|
||||||
const localTaxonPhotos = taxon?.taxonPhotos;
|
const localTaxonPhotos = taxon?.taxonPhotos;
|
||||||
const observationPhoto = obsPhotos?.[0]?.photo?.url
|
const observationPhoto = obsPhotos?.[0]?.photo?.url
|
||||||
|| obsPhotos?.[0]?.photo?.localFilePath;
|
|| Photo.getLocalPhotoUri( obsPhotos?.[0]?.photo?.localFilePath );
|
||||||
|
|
||||||
const taxonPhotos = compact(
|
const taxonPhotos = compact(
|
||||||
localTaxonPhotos
|
localTaxonPhotos
|
||||||
|
|||||||
Reference in New Issue
Block a user