blob: 3d1ef2a8170380397247020030e6b7125c676b71 (
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
|
import React from 'react';
import {Cover, Content} from '../../components';
import Animated from 'react-native-reanimated';
import {AuthContext} from '../../routes/authentication';
import {StatusBar} from 'react-native';
// destructure Value object from Animated
const {Value} = Animated;
/**
* Profile Screen for a user's logged in profile
* including posts, messaging, and settings
*/
const ProfileScreen: React.FC = () => {
const {user} = React.useContext(AuthContext);
const y = new Value(0);
return (
<>
<StatusBar />
<Cover {...{y, user}} />
<Content {...{y, user}} />
</>
);
};
export default ProfileScreen;
|