aboutsummaryrefslogtreecommitdiff
path: root/src/screens/profile/ProfileScreen.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-04-21 13:25:23 -0400
committerGitHub <noreply@github.com>2021-04-21 13:25:23 -0400
commitcdc90fee17175bbf2015b40f18652f75799671a4 (patch)
tree01c920c8abbfff3bfcc605fc98cd96852f6ef824 /src/screens/profile/ProfileScreen.tsx
parentfa39bb545fefefeea1a941c6610e6f072dba6f61 (diff)
parente050709c3be4e9bae828caa6a01bfdab5f4bcfcf (diff)
Merge pull request #372 from IvanIFChen/tma378-viewed-your-profile
[TMA-378] Viewed your profile
Diffstat (limited to 'src/screens/profile/ProfileScreen.tsx')
-rw-r--r--src/screens/profile/ProfileScreen.tsx9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/screens/profile/ProfileScreen.tsx b/src/screens/profile/ProfileScreen.tsx
index 6d9ef020..3dd142e1 100644
--- a/src/screens/profile/ProfileScreen.tsx
+++ b/src/screens/profile/ProfileScreen.tsx
@@ -1,8 +1,9 @@
-import React from 'react';
+import React, {useEffect} from 'react';
import {StatusBar} from 'react-native';
import {Content, TabsGradient} from '../../components';
import {RouteProp} from '@react-navigation/native';
import {MainStackParams} from '../../routes/';
+import {visitedUserProfile} from '../../services';
type ProfileScreenRouteProps = RouteProp<MainStackParams, 'Profile'>;
@@ -14,6 +15,12 @@ const ProfileScreen: React.FC<ProfileOnboardingProps> = ({route}) => {
const {screenType} = route.params;
let {userXId} = route.params;
+ useEffect(() => {
+ if (userXId) {
+ visitedUserProfile(userXId);
+ }
+ });
+
return (
<>
<StatusBar barStyle="dark-content" />