diff --git a/src/navigation/BottomTabNavigator/index.js b/src/navigation/BottomTabNavigator/index.js index e9d287dfe..24d272eba 100644 --- a/src/navigation/BottomTabNavigator/index.js +++ b/src/navigation/BottomTabNavigator/index.js @@ -15,7 +15,8 @@ import IdentifyStackNavigation from "navigation/identifyStackNavigation"; import { blankHeaderTitle, hideHeader, - showHeader + hideHeaderLeft, + showHeaderLeft } from "navigation/navigationOptions"; import ProjectsStackNavigation from "navigation/projectsStackNavigation"; import React from "react"; @@ -42,12 +43,13 @@ const BottomTabs = () => { initialRouteName={OBS_LIST_SCREEN_ID} tabBar={renderTabBar} backBehavior="history" - screenOptions={showHeader} + screenOptions={showHeaderLeft} > { name="Messages" component={Messages} options={{ + ...hideHeaderLeft, meta: { icon: "notifications-bell", testID: MESSAGES_SCREEN_ID, @@ -89,7 +92,10 @@ const BottomTabs = () => { { + + + - - - + headerShadowVisible: false }; const showHeader: Object = { @@ -25,6 +24,16 @@ const showHeader: Object = { } }; +export const showHeaderLeft: Object = { + ...showHeader, + headerLeft: ( ) => +}; + +export const hideHeaderLeft: Object = { + ...showHeader, + headerLeft: null +}; + const showCustomHeader: Object = { ...baseHeaderOptions, header: ContextHeader