remove scalepx

This commit is contained in:
feruz 2021-01-18 14:00:24 +02:00
parent 70e82e2042
commit b51a8833f4
2 changed files with 2 additions and 4 deletions

View File

@ -6,7 +6,6 @@ import ImageSize from 'react-native-image-size';
// Utils
import { getTimeFromNow } from '../../../utils/time';
import scalePx from '../../../utils/scalePx';
// Components
import { PostHeaderDescription } from '../../postElements';
@ -119,7 +118,7 @@ const PostCardView = ({
thumbnailSource={{ uri: _image.thumbnail }}
style={[
styles.thumbnail,
{ width: scalePx(dim.width - 16), height: Math.min(calcImgHeight, dim.height) },
{ width: dim.width - 16, height: Math.min(calcImgHeight, dim.height) },
]}
/>
)}

View File

@ -6,7 +6,6 @@ import ImageSize from 'react-native-image-size';
// Utils
import { getTimeFromNow } from '../../../utils/time';
import scalePx from '../../../utils/scalePx';
// Components
import { PostHeaderDescription } from '../../postElements';
@ -83,7 +82,7 @@ const PostListItemView = ({
thumbnailSource={thumbnail}
style={[
styles.thumbnail,
{ width: scalePx(dim.width - 16), height: Math.min(calcImgHeight, dim.height) },
{ width: dim.width - 16, height: Math.min(calcImgHeight, dim.height) },
]}
/>
<View style={[styles.postDescripton]}>