diff options
Diffstat (limited to 'src/screens/profile/ProfileScreen.tsx')
-rw-r--r-- | src/screens/profile/ProfileScreen.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/screens/profile/ProfileScreen.tsx b/src/screens/profile/ProfileScreen.tsx index 9579a696..d32eca98 100644 --- a/src/screens/profile/ProfileScreen.tsx +++ b/src/screens/profile/ProfileScreen.tsx @@ -1,9 +1,9 @@ -import React from 'react'; +import React, {useContext, useEffect} 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, ProfileProvider} from '../../routes/'; +import {ProfileStackParams, ProfileProvider, AuthContext} from '../../routes/'; /** * Profile Screen for a user's profile @@ -19,6 +19,11 @@ interface ProfileOnboardingProps { const ProfileScreen: React.FC<ProfileOnboardingProps> = ({route}) => { const {isProfileView, username, userId} = route.params; const y = Animated.useValue(0); + const {updateIsEditedProfile} = useContext(AuthContext); + + useEffect(() => { + updateIsEditedProfile(false); + }); const profileView = () => { return ( |