Open tconroy opened 1 year ago
I ran into the same situation when trying to use expo-image
for this use case, so I used a regular Image
instead. Does that work for you?
@tconroy @stevengoldberg Your issue is probably related to expo image caching
Did you have a chance to fix the issue?
Apologies, I have not had a chance to try this yet!
If you use the expo-image
package, you should pass the allowDownscaling={false}
prop, otherwise, the zoom will not work correctly. Ref: https://docs.expo.dev/versions/latest/sdk/image/#allowdownscaling
Hello! Great work on this library, it's really helping me out a lot!
I have a problem/question, and I'm not sure if it's just my implementation or a limitation of the library.
It seems like images rendered in the gallery are low resolution.
I am using shared element transitions to do something like this:
Feed.tsx
Gallery.tsx
so,
Feed
renders small image thumbnails, and when you click on those thumbnails, it's transitioned to a full-screen modal-like view withAwesomeGallery
.my
MemoizedImage
is a wrapper around Expo-Image. When the image loads, I calculate a "scaled down" size for it (to render it in a post feed at thumbnail dimensions). i.e: if an image is1000x1000px
, I render it at200x200px
, for example.However, when in the
Gallery
view, the image is the same resolution as the thumbnail -200px
- and so zooming in on the image, you do not see much detail.Any tips on how I can fix this? I'd like the full-sized image in the "Gallery" view.