diff options
author | Ashm Walia <40498934+ashmgarv@users.noreply.github.com> | 2020-10-19 17:14:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-19 20:14:37 -0400 |
commit | 88fb33d1fe1cd0785e4a92cb3c20d0fafb2da54d (patch) | |
tree | b2e8d474b2c0b02f4e91cd33fa0d5f9842d3a018 /src/routes/tabs/NavigationBar.tsx | |
parent | 1b7fef188ec2aee0706fc1204432315db3d4fec6 (diff) |
Merged changes to make sure moments view and search work (#62)
Diffstat (limited to 'src/routes/tabs/NavigationBar.tsx')
-rw-r--r-- | src/routes/tabs/NavigationBar.tsx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/routes/tabs/NavigationBar.tsx b/src/routes/tabs/NavigationBar.tsx index f05a512b..9cfbe4bf 100644 --- a/src/routes/tabs/NavigationBar.tsx +++ b/src/routes/tabs/NavigationBar.tsx @@ -2,8 +2,7 @@ import {createBottomTabNavigator} from '@react-navigation/bottom-tabs'; import React from 'react'; import {NavigationIcon} from '../../components'; import {Home, Notifications, Upload} from '../../screens'; -import Profile from '../profile'; -import MomentStackScreen from '../profile/MomentStackScreen'; +import Profile from '../profile/Profile'; const Tabs = createBottomTabNavigator(); @@ -36,7 +35,7 @@ const NavigationBar: React.FC = () => { ) : ( <NavigationIcon tab="Notifications" disabled={true} /> ); - } else if (route.name === 'MomentStackScreen') { + } else if (route.name === 'Profile') { return focused ? ( <NavigationIcon tab="Profile" disabled={false} /> ) : ( @@ -45,7 +44,7 @@ const NavigationBar: React.FC = () => { } }, })} - initialRouteName="MomentStackScreen" + initialRouteName="Profile" tabBarOptions={{ showLabel: false, style: { @@ -65,7 +64,11 @@ const NavigationBar: React.FC = () => { /> <Tabs.Screen name="Upload" component={Upload} /> <Tabs.Screen name="Notifications" component={Notifications} /> - <Tabs.Screen name="MomentStackScreen" component={MomentStackScreen} /> + <Tabs.Screen + name="Profile" + component={Profile} + initialParams={{isProfileView: false}} + /> </Tabs.Navigator> ); }; |