From 1b7fef188ec2aee0706fc1204432315db3d4fec6 Mon Sep 17 00:00:00 2001 From: Shravya Ramesh <37447613+shravyaramesh@users.noreply.github.com> Date: Mon, 19 Oct 2020 12:42:15 -0700 Subject: Tma235/231 Individual view and horizontal view (#59) * Implemented modal stack navigation for moment view, created a rough UI for individual moment view [incl: title, image(not displayed)] * bare bones beginnning * Created individual moment screen, moment tile for horizontal view * Alert * Fix initial route Co-authored-by: Ashm Walia Co-authored-by: Ashm Walia <40498934+ashmgarv@users.noreply.github.com> --- src/routes/tabs/NavigationBar.tsx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/routes/tabs') diff --git a/src/routes/tabs/NavigationBar.tsx b/src/routes/tabs/NavigationBar.tsx index 2852b565..f05a512b 100644 --- a/src/routes/tabs/NavigationBar.tsx +++ b/src/routes/tabs/NavigationBar.tsx @@ -3,6 +3,7 @@ import React from 'react'; import {NavigationIcon} from '../../components'; import {Home, Notifications, Upload} from '../../screens'; import Profile from '../profile'; +import MomentStackScreen from '../profile/MomentStackScreen'; const Tabs = createBottomTabNavigator(); @@ -35,7 +36,7 @@ const NavigationBar: React.FC = () => { ) : ( ); - } else if (route.name === 'Profile') { + } else if (route.name === 'MomentStackScreen') { return focused ? ( ) : ( @@ -44,7 +45,7 @@ const NavigationBar: React.FC = () => { } }, })} - initialRouteName="Profile" + initialRouteName="MomentStackScreen" tabBarOptions={{ showLabel: false, style: { @@ -64,11 +65,7 @@ const NavigationBar: React.FC = () => { /> - + ); }; -- cgit v1.2.3-70-g09d2