From cbf6b346cf2f6821daa7c6732a92b7178f39ec85 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Mon, 27 Jan 2020 14:03:27 +0500 Subject: [PATCH] test --- apps/mobile/src/common/common.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/mobile/src/common/common.js b/apps/mobile/src/common/common.js index 8b1a5b603..5b6f4fed8 100755 --- a/apps/mobile/src/common/common.js +++ b/apps/mobile/src/common/common.js @@ -1,4 +1,4 @@ -import {StatusBar} from 'react-native'; +import {StatusBar, PixelRatio} from 'react-native'; import FastStorage from 'react-native-fast-storage'; import { eSendEvent, @@ -63,14 +63,14 @@ export const COLOR_SCHEME_DARK = { //FONT SIZE export const SIZE = { - xxs: 10, - xs: 12, - sm: 15, - md: 18, - lg: 24, - xl: 28, - xxl: 32, - xxxl: 36, + xxs: PixelRatio.getFontScale() * 10, + xs: PixelRatio.getFontScale() * 12, + sm: PixelRatio.getFontScale() * 15, + md: PixelRatio.getFontScale() * 18, + lg: PixelRatio.getFontScale() * 24, + xl: PixelRatio.getFontScale() * 28, + xxl: PixelRatio.getFontScale() * 32, + xxxl: PixelRatio.getFontScale() * 36, }; export const br = 5; // border radius