diff options
author | Leon Jiang <35908040+leonyjiang@users.noreply.github.com> | 2021-04-03 20:54:09 -0400 |
---|---|---|
committer | Leon Jiang <35908040+leonyjiang@users.noreply.github.com> | 2021-04-03 21:00:20 -0400 |
commit | cce0f8510ac691618c69d76daacac4752800b8c1 (patch) | |
tree | ef5fc41183946c86bbb7548a09354ce1915c4439 /src/screens/profile/ProfileScreen.tsx | |
parent | b5401f35d296e21beec41f042d97bffdbdc0c05a (diff) |
Fix profile socials bar animation
Diffstat (limited to 'src/screens/profile/ProfileScreen.tsx')
-rw-r--r-- | src/screens/profile/ProfileScreen.tsx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/screens/profile/ProfileScreen.tsx b/src/screens/profile/ProfileScreen.tsx index 313e2f2c..a5d1e495 100644 --- a/src/screens/profile/ProfileScreen.tsx +++ b/src/screens/profile/ProfileScreen.tsx @@ -1,12 +1,8 @@ import React from 'react'; import {StatusBar} from 'react-native'; -import Animated from 'react-native-reanimated'; -import {Content, Cover, TabsGradient} from '../../components'; -import {RouteProp, useFocusEffect} from '@react-navigation/native'; +import {Content, TabsGradient} from '../../components'; +import {RouteProp} from '@react-navigation/native'; import {MainStackParams} from '../../routes/'; -import {resetScreenType} from '../../store/actions'; -import {useDispatch, useStore} from 'react-redux'; -import {DUMMY_USERID} from '../../store/initialStates'; /**r * Profile Screen for a user's profile @@ -22,8 +18,6 @@ interface ProfileOnboardingProps { const ProfileScreen: React.FC<ProfileOnboardingProps> = ({route}) => { const {screenType} = route.params; let {userXId} = route.params; - const y = Animated.useValue(0); - const dispatch = useDispatch(); /** * This is a double safety check to avoid app crash. @@ -47,7 +41,7 @@ const ProfileScreen: React.FC<ProfileOnboardingProps> = ({route}) => { return ( <> <StatusBar barStyle="dark-content" /> - <Content {...{y, userXId, screenType}} /> + <Content {...{userXId, screenType}} /> <TabsGradient /> </> ); |