Open MrSinaRJ opened 2 years ago
If I do anything related to borders, it will destroy the result and make it unusable.
adding the borderWidth: 1
will break as same as borderRadius: 5
Hey @MrSinaRJ, I'm not fully understanding the problem. Are you saying that when you set resizeMode
to contain
it creates a blur effect on the borders?
Hey @lukebrandonfarrell, yes, you can get this effect with either of 2 settings below:
resizeMode: "contain",
borderWidth: 1
OR
resizeMode: "contain",
borderRadius: 5
Also, you can replace contain
with center
.
When the photo is smaller than the frame, it will stretch to the end
Hmm that is very strange π€ I've never seen behaviour like that before
I tried to add a radius to each image in imageStyle, but the photos will change behavior strangely due to some behind the scene work that I couldn't find. I will post both code and screenshot of the standard format and what I want to achieve that gave me a headache for two days π I hope it's something easy to fix.
EDIT: I forgot to mention, this only happens if the resizeMode is set to contain or center in imageStyle