From 35359bf00339b6ae09791e5769ccef7843c205bc Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Sat, 28 May 2022 00:42:21 -0400 Subject: [PATCH] Use full size tab bar on tablet --- navigation/TabNavigator.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/navigation/TabNavigator.js b/navigation/TabNavigator.js index afaccf6..7779f46 100644 --- a/navigation/TabNavigator.js +++ b/navigation/TabNavigator.js @@ -8,6 +8,7 @@ import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import { observer } from 'mobx-react-lite'; import React, { useContext } from 'react'; import { useTranslation } from 'react-i18next'; +import { Platform } from 'react-native'; import { ThemeContext } from 'react-native-elements'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; @@ -50,7 +51,7 @@ const TabNavigator = observer(() => { tabBarStyle.display = 'none'; } // Use a smaller height for the tab bar when labels are disabled - if (!rootStore.settingStore.isTabLabelsEnabled) { + if (!rootStore.settingStore.isTabLabelsEnabled && !Platform.isPad) { tabBarStyle.height = insets.bottom + 28; }