aboutsummaryrefslogtreecommitdiff
path: root/src/routes/tabs
diff options
context:
space:
mode:
authorIvan Chen <ivan@thetaggid.com>2020-12-29 20:21:24 -0500
committerGitHub <noreply@github.com>2020-12-29 20:21:24 -0500
commitbd2f89805d0bb1c2f1d08fe8d91099aa4f109d35 (patch)
treeac7219e034a0c4035096c6df8dbe6b92446b5111 /src/routes/tabs
parentec478d4981c726856485b49b49ac33b0d9e6a903 (diff)
[TMA-461] Notifications Screen (#151)
* renamed ProfileStack to MainStack, created initial notifications data type * cleaned up code * added notifications to redux * finished sectioned list * updated types to make more sense * finished sectioned notifications by date * updated notification type and tested mock backend integration * finished read or unread logic * minor changes * another minor fix * finished integration * moved stuff * added ability to navigate to user profile Co-authored-by: Husam Salhab <47015061+hsalhab@users.noreply.github.com>
Diffstat (limited to 'src/routes/tabs')
-rw-r--r--src/routes/tabs/NavigationBar.tsx15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/routes/tabs/NavigationBar.tsx b/src/routes/tabs/NavigationBar.tsx
index f3043696..9d7d4b12 100644
--- a/src/routes/tabs/NavigationBar.tsx
+++ b/src/routes/tabs/NavigationBar.tsx
@@ -2,7 +2,7 @@ import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
import React, {Fragment} from 'react';
import {NavigationIcon} from '../../components';
import {ScreenType} from '../../types';
-import Profile from '../profile/ProfileStackScreen';
+import MainStackScreen from '../main/MainStackScreen';
const Tabs = createBottomTabNavigator();
@@ -39,18 +39,19 @@ const NavigationBar: React.FC = () => {
bottom: '1%',
},
}}>
- {/* Removed for Alpha for now */}
- {/* <Tabs.Screen name="Home" component={Home} />
- <Tabs.Screen name="Notifications" component={Notifications} />
- <Tabs.Screen name="Upload" component={Upload} /> */}
+ <Tabs.Screen
+ name="Notifications"
+ component={MainStackScreen}
+ initialParams={{screenType: ScreenType.Notifications}}
+ />
<Tabs.Screen
name="Search"
- component={Profile}
+ component={MainStackScreen}
initialParams={{screenType: ScreenType.Search}}
/>
<Tabs.Screen
name="Profile"
- component={Profile}
+ component={MainStackScreen}
initialParams={{screenType: ScreenType.Profile}}
/>
</Tabs.Navigator>