mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-12 13:05:41 +03:00
remove scalepx
This commit is contained in:
parent
70e82e2042
commit
b51a8833f4
@ -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) },
|
||||
]}
|
||||
/>
|
||||
)}
|
||||
|
@ -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]}>
|
||||
|
Loading…
Reference in New Issue
Block a user