Skip to content

Commit 6c9261e

Browse files
authored
Update scaling-utils.js
1 parent 3a97078 commit 6c9261e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/scaling-utils.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const { width, height } = Dimensions.get('window');
44
const [shortDimension, longDimension] = width < height ? [width, height] : [height, width];
55

66
//Default guideline sizes are based on standard ~5" screen mobile device
7-
const guidelineBaseWidth = 350;
8-
const guidelineBaseHeight = 680;
7+
const guidelineBaseWidth = 375;
8+
const guidelineBaseHeight = 667;
99

1010
export const scale = size => shortDimension / guidelineBaseWidth * size;
1111
export const verticalScale = size => longDimension / guidelineBaseHeight * size;
@@ -15,4 +15,4 @@ export const moderateVerticalScale = (size, factor = 0.5) => size + (verticalSca
1515
export const s = scale;
1616
export const vs = verticalScale;
1717
export const ms = moderateScale;
18-
export const mvs = moderateVerticalScale;
18+
export const mvs = moderateVerticalScale;

0 commit comments

Comments
 (0)