Skip to content

Image quality low until re-opened #12

@pierroo

Description

@pierroo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions