From 10621e86e4379ff05b2262a659b8512d80203a4b Mon Sep 17 00:00:00 2001 From: Ansh Date: Tue, 18 Apr 2023 09:19:37 -0700 Subject: APP-70 give profile its own tab mobile (#469) * add prebuild command to package.json * add ProfileTab navigator and screen * add prop to remove back button from profile * fix MyProfileTabNavigatorParams type * fix dep array for rendering ProfileHeader * just added ts-ignore * enable opening drawer in profile tab * clean up useNavigationTabState * clean up code * fix hideBackButton code flow --- src/lib/hooks/useNavigationTabState.web.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/hooks/useNavigationTabState.web.ts') diff --git a/src/lib/hooks/useNavigationTabState.web.ts b/src/lib/hooks/useNavigationTabState.web.ts index d0173aa0f..704424781 100644 --- a/src/lib/hooks/useNavigationTabState.web.ts +++ b/src/lib/hooks/useNavigationTabState.web.ts @@ -8,6 +8,7 @@ export function useNavigationTabState() { isAtHome: currentRoute === 'Home', isAtSearch: currentRoute === 'Search', isAtNotifications: currentRoute === 'Notifications', + isAtMyProfile: currentRoute === 'MyProfile', } }) } -- cgit 1.4.1