Skip to content

Commit 6a6c51f

Browse files
M-i-k-e-lInbal-Tish
authored andcommitted
Change location of screenAspectRatio declaration (#504)
1 parent d5c1de0 commit 6a6c51f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/Constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ function setStatusBarHeight() {
3535
export const isRTL = I18nManager.isRTL;
3636

3737
const {height, width} = Dimensions.get(dimensionsScope.WINDOW);
38-
const screenAspectRatio = screenWidth < screenHeight ? screenHeight / screenWidth : screenWidth / screenHeight;
3938
export let orientation = getOrientation(height, width);
4039
export let screenWidth = width;
4140
export let screenHeight = height;
4241
export let isSmallScreen = screenWidth <= 340;
4342
export let isShortScreen = screenHeight <= 600;
43+
const screenAspectRatio = screenWidth < screenHeight ? screenHeight / screenWidth : screenWidth / screenHeight;
4444
export const isTablet = Platform.isPad || (screenAspectRatio < 1.6 && Math.max(screenWidth, screenHeight) >= 900);
4545

4646
export function getSafeAreaInsets() {

0 commit comments

Comments
 (0)