Merge pull request #374 from thornbill/tiny-tab-bar

This commit is contained in:
Anthony Lavado 2022-05-30 13:30:49 -04:00 committed by GitHub
commit ce5d30d85d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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';
@ -54,7 +55,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;
}