question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

resizeMode behaviour is inconsistent between 8.5.12 and 8.6.0

See original GitHub issue

Describe the bug Image resize behaviour is inconsistent between versions.

To Reproduce

<FastImage 
resizeMode={
FastImage.resizeMode.cover
}
source={
{
uri: "https://azbykamebeli.ru/upload/resize_cache/iblock/04d/748_900_1/04d58535526351ab165c5c11983f2791.jpg",
cache: FastImage.cacheControl.web,
priority: FastImage.priority.high
}
}
style={
{
width: "100%",
minHeight: 469.40028989251283
}
}
/>

Expected behavior Image resize behaviour to be consistent between versions.

Screenshots

v8.5.12

Screenshot_20220829-215717_azbykamebeli

v8.6.0

Screenshot_20220829-220403_azbykamebeli

Dependency versions

  • React Native version: ^0.69.5
  • React version: ^18.2.0
  • React Native Fast Image version: ^8.6.0

Changing FastImage.resizeMode.cover to FastImage.resizeMode.contain solves the problem, but the point is that the behavior shouldn’t have changed between versions.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:6
  • Comments:6

github_iconTop GitHub Comments

1reaction
bhaltaircommented, Sep 1, 2022

same problem

0reactions
esthefanielanza-sothebyscommented, Nov 25, 2022

I’m having the same issue on android devices

Dependency versions: “react-native”: “0.67.5” “react”: “17.0.2”, “react-native-fast-image”: “^8.3.4”

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found