react-native-fast-image icon indicating copy to clipboard operation
react-native-fast-image copied to clipboard

resizeMode behaviour is inconsistent between 8.5.12 and 8.6.0

Open Dimous opened this issue 3 years ago • 3 comments
trafficstars

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.

Dimous avatar Aug 29 '22 12:08 Dimous

same problem

bhaltair avatar Sep 01 '22 10:09 bhaltair

Is this just a case of the default value changing? (agree it shouldn't have)

djMax avatar Sep 02 '22 22:09 djMax

(I ask that because if all we need to do is specify contain everywhere there was no value, that's an easy-ish thing to do. But if the change in behavior is more complex...)

djMax avatar Sep 02 '22 22:09 djMax

Same Problem. And AutoSizeExample is not working at 8.6.x in andorid.

jihokim2 avatar Oct 11 '22 04:10 jihokim2

Bump! This is happening in my project as well.

forkball avatar Nov 15 '22 21:11 forkball

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"

anyone found a solution?

saif-o99 avatar Aug 02 '23 16:08 saif-o99

This package is dead.

Dimous avatar Aug 03 '23 13:08 Dimous

Just converted to react-native-image-cache . seems alot better

saif-o99 avatar Aug 03 '23 13:08 saif-o99