diff options
Diffstat (limited to 'src/screens/profile/ProfileScreen.tsx')
-rw-r--r-- | src/screens/profile/ProfileScreen.tsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/screens/profile/ProfileScreen.tsx b/src/screens/profile/ProfileScreen.tsx index 9da9a3d8..ea557063 100644 --- a/src/screens/profile/ProfileScreen.tsx +++ b/src/screens/profile/ProfileScreen.tsx @@ -4,16 +4,13 @@ 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); + const y = Animated.useValue(0); return ( <> <StatusBar /> |