blob: 3dd142e183cc6172b13147033b4abd21e9bfb201 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 | 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'>;
interface ProfileOnboardingProps {
  route: ProfileScreenRouteProps;
}
const ProfileScreen: React.FC<ProfileOnboardingProps> = ({route}) => {
  const {screenType} = route.params;
  let {userXId} = route.params;
  useEffect(() => {
    if (userXId) {
      visitedUserProfile(userXId);
    }
  });
  return (
    <>
      <StatusBar barStyle="dark-content" />
      <Content {...{userXId, screenType}} />
      <TabsGradient />
    </>
  );
};
export default ProfileScreen;
 |