floor size height

This commit is contained in:
feruz 2021-01-29 00:25:50 +02:00
parent 29a6a84830
commit 5f51842032

View File

@ -44,7 +44,7 @@ const PostListItemView = ({
if (image) {
if (!_isMounted) {
ImageSize.getSize(thumbnail.uri).then((size) => {
setCalcImgHeight((size.height / size.width) * dim.width);
setCalcImgHeight(Math.floor((size.height / size.width) * dim.width));
});
}
}