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/routes/helpers.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/routes/helpers.ts') diff --git a/src/lib/routes/helpers.ts b/src/lib/routes/helpers.ts index be76b9669..cfa6ae53b 100644 --- a/src/lib/routes/helpers.ts +++ b/src/lib/routes/helpers.ts @@ -20,7 +20,8 @@ export function isStateAtTabRoot(state: State | undefined) { return ( isTab(currentRoute.name, 'Home') || isTab(currentRoute.name, 'Search') || - isTab(currentRoute.name, 'Notifications') + isTab(currentRoute.name, 'Notifications') || + isTab(currentRoute.name, 'MyProfile') ) } -- cgit 1.4.1