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/ProfileStack.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/routes/profile/ProfileStack.tsx') diff --git a/src/routes/profile/ProfileStack.tsx b/src/routes/profile/ProfileStack.tsx index b535d90d..cba646f8 100644 --- a/src/routes/profile/ProfileStack.tsx +++ b/src/routes/profile/ProfileStack.tsx @@ -1,15 +1,20 @@ import {createStackNavigator} from '@react-navigation/stack'; -import {MomentType} from '../../types'; +import {MomentType, ProfilePreviewType, SocialAccountType} from '../../types'; export type ProfileStackParams = { Search: undefined; Profile: { isProfileView: boolean; + username: string; + userId: string; }; SocialMediaTaggs: { socialMediaType: string; socialMediaHandle: string; isProfileView: boolean; + name: string; + accountData: SocialAccountType; + avatar: string; }; CaptionScreen: { title: string; @@ -23,12 +28,9 @@ export type ProfileStackParams = { isProfileView: boolean; moment_id: string; }; - ProfileView: { - isProfileView: boolean; - }; FollowersListScreen: { - isProfileView: boolean; isFollowers: boolean; + list: ProfilePreviewType[]; }; }; -- cgit v1.2.3-70-g09d2