File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -35,12 +35,12 @@ function setStatusBarHeight() {
35
35
export const isRTL = I18nManager . isRTL ;
36
36
37
37
const { height, width} = Dimensions . get ( dimensionsScope . WINDOW ) ;
38
- const screenAspectRatio = screenWidth < screenHeight ? screenHeight / screenWidth : screenWidth / screenHeight ;
39
38
export let orientation = getOrientation ( height , width ) ;
40
39
export let screenWidth = width ;
41
40
export let screenHeight = height ;
42
41
export let isSmallScreen = screenWidth <= 340 ;
43
42
export let isShortScreen = screenHeight <= 600 ;
43
+ const screenAspectRatio = screenWidth < screenHeight ? screenHeight / screenWidth : screenWidth / screenHeight ;
44
44
export const isTablet = Platform . isPad || ( screenAspectRatio < 1.6 && Math . max ( screenWidth , screenHeight ) >= 900 ) ;
45
45
46
46
export function getSafeAreaInsets ( ) {
You can’t perform that action at this time.
0 commit comments