resizeMode behaviour is inconsistent between 8.5.12 and 8.6.0
See original GitHub issueDescribe 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
v8.6.0
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:
- Created a year ago
- Reactions:6
- Comments:6
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
same problem
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”