cbbfcd / react-native-lightbox

Images etc in Full Screen Lightbox Popovers for React Native
MIT License
63 stars 27 forks source link

Image quality low until re-opened #12

Open pierroo opened 1 year ago

pierroo commented 1 year ago

Hi,

Everywhere I am using this Lightbox component in my app I am facing the same issue:

The first time I click on the image to have the lightbox displayed, it is slightly blurred / low quality looking. Then I close the lightbox, and re-tap on the image: this time the quality is perfect as expected.

And if I close the view in which this image + lightbox is rendered, I have to do the same again: a first open / close, then reopening to see the good quality image.

This seems to happen only with FastImage.

Using v0.8.8

Code as below:

<Lightbox activeProps={{ style: { flex: 1, resizeMode: 'contain', width: null } }}>
          <FastImage
            style={{ width: 100, height: 100 }}
            source={{ uri: photo }}
            resizeMode={FastImage.resizeMode.contain}
          />
        </Lightbox>

Any idea why this would happen?

cbbfcd commented 1 year ago

There are reproducible demos?

pierroo commented 1 year ago

The code above is enough to reproduce the issue. Make sure to use FastImage, and not react-native Image, for the issue only seems to happen with FastImage. ( should this issue be with FastImage library perhaps? not sure)

jainminals commented 1 year ago

Im also facing same issue. when i open image its get blurry image.

jainminals commented 1 year ago

The picture is not working as expected in the package picture get blur .

henryteng07 commented 5 months ago

Did anyone find a fix for this? This is happening to only large images for me

cbbfcd commented 2 weeks ago

We apologize for the late response. The related issues will be resolved in the upcoming version. You are also welcome to join us in the co-development.