From 1f2783f895841eb76a3602e9d3fe777329749195 Mon Sep 17 00:00:00 2001 From: "Bryant, Charles" Date: Sun, 10 Feb 2019 07:59:14 -0800 Subject: [PATCH] fix maps layout --- app/styles/LayoutConstants.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/styles/LayoutConstants.js b/app/styles/LayoutConstants.js index caa9a049e..1517b1297 100644 --- a/app/styles/LayoutConstants.js +++ b/app/styles/LayoutConstants.js @@ -1,9 +1,9 @@ import { Dimensions, StatusBar } from 'react-native' -import { deviceIphoneX } from '../util/general' +import { platformAndroid, deviceIphoneX } from '../util/general' const WINDOW_WIDTH = Dimensions.get('window').width const WINDOW_HEIGHT = Dimensions.get('window').height -const STATUS_BAR_HEIGHT = StatusBar.currentHeight +const STATUS_BAR_HEIGHT = platformAndroid() ? StatusBar.currentHeight : 0 const NAVIGATOR_HEIGHT = 42 const TAB_BAR_HEIGHT = deviceIphoneX() ? 31 : NAVIGATOR_HEIGHT const MAX_CARD_WIDTH = WINDOW_WIDTH - 12