Anthonyzou / react-native-image-zoom

Image pan and zoom for Android
https://www.npmjs.com/package/react-native-image-zoom
MIT License
115 stars 52 forks source link

Images getting distorted inside the component #13

Closed shidhincr closed 8 years ago

shidhincr commented 8 years ago

Hi,

I see a problem with the images. When I use the Image component from react-native-image-zoom, it looks distorted ( seems like some pixels are lost ).

See this screenshot:

When I use Image from react-native-image-zoom -->

screen shot 2016-05-10 at 4 58 48 pm screen shot 2016-05-10 at 4 59 00 pm

I don't have this problem when I use the Image component from react-native

When I use Image from react-native -->

screen shot 2016-05-10 at 5 04 26 pm

Do you have any leads to fix this issue ?

shidhincr commented 8 years ago

I just figured it out that the Glide is actually causing this issue. I had to set-up a GlideBuilder configuration inside my app to change the decode format to PREFER_ARGB_8888.

That fixed the issue!