alwx / react-native-photo-view

Pinch-to-zoom view for React Native (both iOS and Android)
MIT License
816 stars 435 forks source link

Image quality reduced on IOS after applying resizeMode #81

Closed DanteXie closed 6 years ago

DanteXie commented 6 years ago

The library is working perfectly on Android with androidScaleType='fitCenter' applied.

However, I find it hard to achieve the same on IOS with resizeMode='contain' applied. In this case, when I zoom in the image, it's blurred.

My assumption is that image quality suffers from react native image resizing, because if I set resizeMode='cover', image quality gets obviously higher, but of course, still not the original quality if the image is large enough, and the same effect achieved on Android with androidScaleType='fitCenter' applied can not be achieved if resizeMode='cover'.

Haven't found a solution to it yet.

zackify commented 6 years ago

Looks like it got fixed in 1.4.0, are you on it?

DanteXie commented 6 years ago

Yea, the new version has solved this issue. Great job !!