aboutsummaryrefslogtreecommitdiff
path: root/src/routes/tabs/NavigationBar.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-04-02 14:12:49 -0400
committerGitHub <noreply@github.com>2021-04-02 14:12:49 -0400
commit3a3f63ee76a31d93068920508b21e9a220b8ef57 (patch)
treed7795e8f24770c1daf1a8a64b4086418a7577c0b /src/routes/tabs/NavigationBar.tsx
parent857bede6a08e97af7609a738b4daf633a46baba1 (diff)
parentecd44e517cbb978c0a590a5861cb2cd357d0fc11 (diff)
Merge pull request #348 from leonyjiang/tma750-chat-bottom-tab
[TMA-750] Add Chat to Navigation
Diffstat (limited to 'src/routes/tabs/NavigationBar.tsx')
-rw-r--r--src/routes/tabs/NavigationBar.tsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/routes/tabs/NavigationBar.tsx b/src/routes/tabs/NavigationBar.tsx
index e9208525..9b8427e7 100644
--- a/src/routes/tabs/NavigationBar.tsx
+++ b/src/routes/tabs/NavigationBar.tsx
@@ -54,6 +54,8 @@ const NavigationBar: React.FC = () => {
disabled={!focused}
/>
);
+ case 'Chat':
+ return <NavigationIcon tab="Chat" disabled={!focused} />;
case 'Profile':
return <NavigationIcon tab="Profile" disabled={!focused} />;
case 'SuggestedPeople':
@@ -93,6 +95,11 @@ const NavigationBar: React.FC = () => {
initialParams={{screenType: ScreenType.Notifications}}
/>
<Tabs.Screen
+ name="Chat"
+ component={MainStackScreen}
+ initialParams={{screenType: ScreenType.Chat}}
+ />
+ <Tabs.Screen
name="Profile"
component={MainStackScreen}
initialParams={{screenType: ScreenType.Profile}}