From f347ef180ece9235380f2225243beddaececa949 Mon Sep 17 00:00:00 2001 From: Ashm Walia <40498934+ashmgarv@users.noreply.github.com> Date: Mon, 9 Nov 2020 12:16:44 -0800 Subject: [FOR MASS REVIEW] Multiple contexts(Searched user gets replaced) (#97) * First commit towards clean code * Tested things * Some final touch * View updates posts * Cleaned up followers / following * You won't believe but it works * Pass avatar uri via props * Small change * Small change * Removed unnecessary jargon Co-authored-by: Ivan Chen --- src/routes/profile/Profile.tsx | 7 ------- src/routes/profile/ProfileStack.tsx | 12 +++++++----- 2 files changed, 7 insertions(+), 12 deletions(-) (limited to 'src/routes/profile') diff --git a/src/routes/profile/Profile.tsx b/src/routes/profile/Profile.tsx index abf967c6..bffa22ce 100644 --- a/src/routes/profile/Profile.tsx +++ b/src/routes/profile/Profile.tsx @@ -15,7 +15,6 @@ import {RouteProp} from '@react-navigation/native'; * What will be the First Screen of the stack depends on value of isProfileView (Search if its true else Profile) * Trying to explain the purpose of each route on the stack (ACTUALLY A STACK) * Profile : To display the logged in user's profile when isProfileView is false, else displays profile of any user the logged in user wants to view. - * ProfileView : To display profile of a commenter / any user who has commented on a photo. * When you click on the profile icon after looking at a user's profile, the stack is reset and you come back to the top of the stack (First screen : Profile in this case) * Search : To display the search screen. Search for a user on this screen, click on a result tile and navigate to the same (isProfileView = true). * When you click on the search icon after looking at a user's profile, the stack gets reset and you come back to the top of the stack (First screen : Search in this case) @@ -89,12 +88,6 @@ const Profile: React.FC = ({route}) => { options={{headerShown: false}} initialParams={{isProfileView: isProfileView}} /> -