From 408115bec0a542d9d406e48afcfec853f6c8d902 Mon Sep 17 00:00:00 2001 From: Amanda Bullington <35536439+albullington@users.noreply.github.com> Date: Tue, 26 Mar 2024 16:59:43 -0700 Subject: [PATCH] Fix nav to Notifications by including ObsStackNavigator; closes #1252 (#1315) --- .../BottomTabNavigator/CustomTabBarContainer.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/navigation/BottomTabNavigator/CustomTabBarContainer.js b/src/navigation/BottomTabNavigator/CustomTabBarContainer.js index 06cf585ce..e108ca12b 100644 --- a/src/navigation/BottomTabNavigator/CustomTabBarContainer.js +++ b/src/navigation/BottomTabNavigator/CustomTabBarContainer.js @@ -73,7 +73,14 @@ const CustomTabBarContainer = ( { navigation }: Props ): Node => { onPress: ( ) => { navigation.reset( { index: 0, - routes: [{ name: "Notifications" }] + routes: [ + { + name: "ObservationsStackNavigator", + params: { + screen: "Notifications" + } + } + ] } ); setActiveTab( NOTIFICATIONS_SCREEN_ID ); },