aboutsummaryrefslogtreecommitdiff
path: root/src/screens/profile/ProfileScreen.tsx
blob: 7d11fa2af12c4392ae561c7182ab1e5f01ddd57a (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
import React from 'react';
import {StatusBar} from 'react-native';
import Animated from 'react-native-reanimated';
import {Content, Cover, TabsGradient} from '../../components';
import {RouteProp} from '@react-navigation/native';
import {ProfileStackParams} from '../../routes/profile';

/**
 * Profile Screen for a user's profile
 * including posts, messaging, and settings
 */

type ProfileScreenRouteProps = RouteProp<ProfileStackParams, 'Profile'>;

interface ProfileOnboardingProps {
  route: ProfileScreenRouteProps;
}

const ProfileScreen: React.FC<ProfileOnboardingProps> = ({route}) => {
  const {isProfileView} = route.params;
  const y = Animated.useValue(0);
  return (
    <>
      <StatusBar />
      <Cover {...{y, isProfileView}} />
      <Content {...{y, isProfileView}} />
      <TabsGradient />
    </>
  );
};

export default ProfileScreen;