Fix theme thumbnail width (#3080)

This commit is contained in:
Miguel Alatzar 2019-08-08 06:53:44 -07:00 committed by Saturnino Abril
parent 1ea76d1e47
commit c7b5aff765

View file

@ -12,8 +12,6 @@ import {
import {makeStyleSheetFromTheme} from 'app/utils/theme';
const {width: deviceWidth, height: deviceHeight} = Dimensions.get('window');
const checkmark = require('assets/images/themes/check.png');
const tilePadding = 8;
@ -38,7 +36,8 @@ const ThemeTile = (props) => {
);
const tilesPerLine = isLandscape || isTablet ? 4 : 2;
const fullWidth = isLandscape ? deviceHeight - 40 : deviceWidth;
const {width: deviceWidth} = Dimensions.get('window');
const fullWidth = isLandscape ? deviceWidth - 40 : deviceWidth;
const layoutStyle = {
container: {
width: (fullWidth / tilesPerLine) - tilePadding,