Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IOS 0.76.5] Image is not displayed properly after refetch api #47643

Open
nazacity opened this issue Nov 15, 2024 · 7 comments
Open

[IOS 0.76.5] Image is not displayed properly after refetch api #47643

nazacity opened this issue Nov 15, 2024 · 7 comments
Labels
Component: Image Needs: Attention Issues where the author has responded to feedback. Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. 🌐Networking Related to a networking API. Platform: iOS iOS applications.

Comments

@nazacity
Copy link

nazacity commented Nov 15, 2024

Description

Image is displayed fine on android
but on ios it's displayed weird after refetch api 2-3times
i don't know why

Please look at video below

Steps to reproduce

React Native Version

0.76.5

Affected Platforms

Runtime - iOS

Output of npx react-native info

System:
  OS: macOS 14.7.1
  CPU: (10) arm64 Apple M1 Max
  Memory: 120.38 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.17.1
    path: ~/.nvm/versions/node/v18.17.1/bin/node
  Yarn: Not Found
  npm:
    version: 9.6.7
    path: ~/.nvm/versions/node/v18.17.1/bin/npm
  Watchman:
    version: 2023.12.04.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK:
    API Levels:
      - "23"
      - "27"
      - "29"
      - "30"
      - "31"
      - "33"
      - "34"
      - "35"
    Build Tools:
      - 28.0.3
      - 29.0.2
      - 30.0.2
      - 30.0.3
      - 31.0.0
      - 33.0.0
      - 33.0.1
      - 34.0.0
      - 35.0.0
    System Images:
      - android-29 | Intel x86 Atom_64
      - android-29 | Google APIs Intel x86 Atom
      - android-30 | ARM 64 v8a
      - android-30 | Google APIs ARM 64 v8a
      - android-30 | Google Play ARM 64 v8a
      - android-31 | Google APIs ARM 64 v8a
      - android-31 | Google Play ARM 64 v8a
      - android-33 | ARM 64 v8a
      - android-33 | Google APIs ARM 64 v8a
      - android-34 | ARM 64 v8a
      - android-34 | Google APIs ARM 64 v8a
      - android-34 | Google Play ARM 64 v8a
      - android-35 | ARM 64 v8a
      - android-35 | Google APIs ARM 64 v8a
      - android-35 | Google Play ARM 64 v8a
      - android-VanillaIceCream | Google APIs ARM 64 v8a
      - android-VanillaIceCream | Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2024.1 AI-241.15989.150.2411.11948838
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.10
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.1.3
    wanted: 15.1.3
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.5
    wanted: 0.76.5
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Stacktrace or Logs

-

Reproducer

Screenshots and Videos

enable new arch
https://github.com/user-attachments/assets/021b7c7c-0e04-4a2a-ac74-1e035590aa11
disable new arch
https://github.com/user-attachments/assets/d469233d-c432-4b3d-8745-bbdc0dfd14fe

@react-native-bot react-native-bot added Component: Image Platform: iOS iOS applications. 🌐Networking Related to a networking API. Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Nov 15, 2024
@react-native-bot
Copy link
Collaborator

Warning

Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:

@cortinico
Copy link
Contributor

but on ios it's displayed weird after refetch api 2-3times

What do you mean with "displayed weird"?
Are you referring to the border radius here:

Screenshot 2024-12-02 at 18 30 50

Can we reproduce this somehow?

@nazacity
Copy link
Author

nazacity commented Dec 8, 2024

it's not full image as expect
and somehow radius border is weird

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Dec 8, 2024
@nathanguigui
Copy link

same issue for me

Description

The images are often and randomly cut or have weird border radius applied

React Native Version

0.76.5

Affected Platforms

Runtime - iOS

Capture d’écran 2024-12-18 à 11 42 49

Here using ImageBackground component

<ImageBackground
              source={require('product-header.png')}
              resizeMode={'cover'}
              style={{
                width: '100%',
                justifyContent: 'center',
                alignItems: 'center',
                zIndex: 123,
                backgroundColor: 'red',
              }}
            >

Capture d’écran 2024-12-18 à 10 20 40
Capture d’écran 2024-12-18 à 10 20 28
Capture d’écran 2024-12-18 à 10 20 13

@zarv1k
Copy link

zarv1k commented Dec 25, 2024

Might be related to overflow: 'hidden' style bug on iOS #48392

@nazacity
Copy link
Author

nazacity commented Dec 28, 2024

Might be related to overflow: 'hidden' style bug on iOS #48392

I can not upgrade to 0.77 becuase many libs do not support it yet

@nazacity nazacity changed the title [IOS 0.76.2] Image is not displayed properly after refetch api [IOS 0.76.5] Image is not displayed properly after refetch api Dec 28, 2024
@nazacity
Copy link
Author

react-native+0.76.5.patch
@nathanguigui try this patch
some how I solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Image Needs: Attention Issues where the author has responded to feedback. Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. 🌐Networking Related to a networking API. Platform: iOS iOS applications.
Projects
None yet
Development

No branches or pull requests

5 participants