aboutsummaryrefslogtreecommitdiff
path: root/src/screens
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-04-21 12:23:37 -0400
committerIvan Chen <ivan@tagg.id>2021-04-21 12:23:37 -0400
commite050709c3be4e9bae828caa6a01bfdab5f4bcfcf (patch)
tree01c920c8abbfff3bfcc605fc98cd96852f6ef824 /src/screens
parent419681ad0d832808caec5252fb65aa154b0e4ae2 (diff)
updated to use the new endpoint
Diffstat (limited to 'src/screens')
-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" />