diff options
author | Ivan Chen <ivan@tagg.id> | 2021-07-16 18:59:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-16 18:59:05 -0400 |
commit | fcd80939d3b707f08a9684a61e17f99e0759d208 (patch) | |
tree | eb998ec4a5d26c48a6d3bdc4849ee6aaf70716bb | |
parent | 6161a73ec29dbcf4ffb9ee90d86a3c4e46eb58dc (diff) | |
parent | 173db20aee6e671ccdeb276ee33c57ce5dc7e571 (diff) |
Merge pull request #511 from IvanIFChen/hotfix-tabbar-visible-when-hidden
[HOTFIX] Fix Tabbar Height When Hidden
-rw-r--r-- | src/routes/tabs/NavigationBar.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/routes/tabs/NavigationBar.tsx b/src/routes/tabs/NavigationBar.tsx index c3f0b9f8..a3584f55 100644 --- a/src/routes/tabs/NavigationBar.tsx +++ b/src/routes/tabs/NavigationBar.tsx @@ -6,7 +6,7 @@ import {NO_NOTIFICATIONS} from '../../store/initialStates'; import {RootState} from '../../store/rootReducer'; import {setNotificationsReadDate} from '../../services'; import {ScreenType} from '../../types'; -import {haveUnreadNotifications} from '../../utils'; +import {haveUnreadNotifications, isIPhoneX} from '../../utils'; import MainStackScreen from '../main/MainStackScreen'; import {NotificationPill} from '../../components/notifications'; @@ -84,9 +84,7 @@ const NavigationBar: React.FC = () => { backgroundColor: 'transparent', position: 'absolute', borderTopWidth: 0, - left: 0, - right: 0, - bottom: '1%', + height: isIPhoneX() ? 85 : 55, }, }}> <Tabs.Screen |