Skip to content

Wrong image pixel density version on initial launch #2084

Open
@AdrianFahrbach

Description

@AdrianFahrbach

Environment

react-native -v: v0.72.10
npm ls react-native-macos: v0.72.18
node -v: v18.17.1
npm -v: v9.6.7
yarn --version: not in use
xcodebuild -version: Xcode 15.2 Build version 15C500b

Steps to reproduce the bug

It seems like my React Native app is using the wrong image on initial launch. It doesn't load the @2x version but instead shows the lower res image.
I also had this issue during development, but thought it would fix itself in a production build. I'm not quite sure how (or even if) I can reproduce this during development, I definitely could reproduce it on my TestFlight build though.

  1. Publish your app through TestFlight (should have an image with 1x and 2x versions)
  2. Download and install the TestFlight app
  3. Check the image. It seems to be loading the lower resolution version
  4. Completely close/quite the app and restart it
  5. The image is now loaded correctly

Expected Behavior

It should be using the correct @2x image.

Actual Behavior

Take a close look at the icons, especially the calendar icon on the top right:

screenshot 2024-02-26 at 15 52 04@2x

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions