blob: 09b70cd328ce158b1f6869a2e03112bd126046ab (
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 {RouteProp} from '@react-navigation/native';
import React, {useEffect} from 'react';
import {StatusBar} from 'react-native';
import {Content, TabsGradient} from '../../components';
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;
|